rspec / rspec-mocks

RSpec's 'test double' framework, with support for stubbing and mocking
https://rspec.info
MIT License
1.16k stars 358 forks source link

After a regular gem update, Double test broken, even the expected and got look the same #1462

Closed hankouyu closed 2 years ago

hankouyu commented 2 years ago

the result is as below:

       #<Double "BROOK"> received :request_suspensions_jsa with unexpected arguments
         expected: (nil, {:contract=>"BROOK", :site=>"ABCD"}, {:jsid=>"123456"})
              got: (nil, {:contract=>"BROOK", :site=>"ABCD"}, {:jsid=>"123456"})
       Diff:

related gems

 bundle list | rg rspec
  * rspec (3.11.0)
  * rspec-activemodel-mocks (1.1.0)
  * rspec-core (3.11.0)
  * rspec-expectations (3.11.0)
  * rspec-html-matchers (0.9.4)
  * rspec-json_expectations (2.2.0)
  * rspec-mocks (3.11.0)
  * rspec-rails (5.1.0)
  * rspec-support (3.11.0)
  * ruby_event_store-rspec (2.3.0)
hankouyu commented 2 years ago

maybe duplicated with #1460

JonRowe commented 2 years ago

Yes this is a duplicate