When running rswag tests, pass the RSpec::Core::Example object to rswag's run_test!.
RSpec::Core::Example wasn't being passed. AppMap wasn't crashing so far because example wasn't being used with with RSPEC_VERSION < 3. When used with rspec version 3+ this bug started to occur.
Added testcase spec/fixtures/rails6_users_app/spec/requests/rswag_spec.rb and adjusted existing testcases to account for it.
After this change, verified Forem's ./spec/requests/api/v1 tests all pass without the exclusion pattern used before for ./spec/requests/api/v1/docs/*_spec.rb
When running rswag tests, pass the
RSpec::Core::Example
object to rswag'srun_test!
.RSpec::Core::Example
wasn't being passed. AppMap wasn't crashing so far because example wasn't being used with withRSPEC_VERSION < 3
. When used with rspec version 3+ this bug started to occur.Added testcase
spec/fixtures/rails6_users_app/spec/requests/rswag_spec.rb
and adjusted existing testcases to account for it.After this change, verified Forem's
./spec/requests/api/v1
tests all pass without the exclusion pattern used before for./spec/requests/api/v1/docs/*_spec.rb
Fixes https://github.com/getappmap/appmap-ruby/issues/309