Closed kgilpin closed 1 year ago
Suggest adding an rswag test to one of the Rails fixture apps in appmap-ruby and that should be a pretty good way to reproduce it and fix it.
There's a block parameter in this flow that isn't getting propagated through our rspec.rb.
https://github.com/getappmap/appmap-ruby#using-fixture-apps
To reproduce in Forem
RAILS_ENV=test bundle exec rspec --backtrace ./spec/requests/api/v1/docs/profile_images_spec.rb
edit: Passing the example
param now gives a different error
if we use in lib/appmap/rspec.rb:241:in `instance_exec'
instance_exec(fn) { |x| x.call(example) }
# or: fn.call(example)
Failure/Error: VCR.turned_off { ex.run }
`assert_response_matches_metadata` is not available on an example group (e.g. a `describe` or `context` block). It is only available from within individual examples (e.g. `it` blocks) or from constructs that run in the scope of an example (e.g. `before`, `let`, etc).
Maybe the call that uses example should be executed as a proc from assert_response_matches_metadata
, or with eval.
:tada: This issue has been resolved in version 0.95.2 :tada:
The release is available on:
v0.95.2
Your semantic-release bot :package::rocket:
Example from Forem: