Class: Bogus::VerifiesStubDefinition
- Inherits:
-
Object
- Object
- Bogus::VerifiesStubDefinition
- Extended by:
- Takes
- Defined in:
- lib/bogus/stubbing/verifies_stub_definition.rb
Instance Method Summary collapse
Methods included from Takes
Instance Method Details
#verify!(object, method_name, args) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/bogus/stubbing/verifies_stub_definition.rb', line 7 def verify!(object, method_name, args) stubbing_non_existent_method!(object, method_name) unless object.respond_to?(method_name) return unless object.methods.include?(method_name) return if WithArguments.with_matcher?(args) method = object.method(method_name) verify_call!(method, args) end |