spec/unit/yardcheck/method_tracer_spec.rb in yardcheck-0.0.2 vs spec/unit/yardcheck/method_tracer_spec.rb in yardcheck-0.0.3
- old
+ new
@@ -40,18 +40,18 @@
scope: :class,
selector: :singleton_method_example,
namespace: Foo.singleton_class,
params: { baz: 'Hello' },
return_value: 'HELLO',
- example_location: RSpec.current_example.location
+ example_metadata: { location: RSpec.current_example.location, id: RSpec.current_example.id }
),
Yardcheck::MethodCall::Return.process(
scope: :instance,
selector: :instance_method_example,
namespace: Foo,
params: { baz: 'Hello' },
return_value: 'HELLO',
- example_location: RSpec.current_example.location
+ example_metadata: { location: RSpec.current_example.location, id: RSpec.current_example.id }
)
])
end
end