spec/unit/yardcheck/method_tracer_spec.rb in yardcheck-0.0.1 vs spec/unit/yardcheck/method_tracer_spec.rb in yardcheck-0.0.2
- old
+ new
@@ -34,26 +34,24 @@
foo.instance_method_example(str)
qux.instance_method_example(str)
end
expect(tracer.events).to eq([
- Yardcheck::MethodCall.process(
+ Yardcheck::MethodCall::Return.process(
scope: :class,
selector: :singleton_method_example,
namespace: Foo.singleton_class,
params: { baz: 'Hello' },
return_value: 'HELLO',
- example_location: RSpec.current_example.location,
- error_raised: false
+ example_location: RSpec.current_example.location
),
- Yardcheck::MethodCall.process(
+ Yardcheck::MethodCall::Return.process(
scope: :instance,
selector: :instance_method_example,
namespace: Foo,
params: { baz: 'Hello' },
return_value: 'HELLO',
- example_location: RSpec.current_example.location,
- error_raised: false
+ example_location: RSpec.current_example.location
)
])
end
end