intridea/multi_json

Test failures with RSpec 3.10.2 +

voxik opened this issue · 0 comments

voxik commented

The test suite fails since RSpec 3.10.2 was released:

+ rspec spec/multi_json_spec.rb spec/options_cache_spec.rb
.................F.............
Failures:
  1) MultiJson default options sets both load and dump options
     Failure/Error: self.load_options = self.dump_options = value
       MultiJson received :dump_options= with unexpected arguments
         expected: ({:foo=>"bar"})
              got: ({:foo=>"bar"})
     # ./lib/multi_json.rb:15:in `default_options='
     # ./spec/multi_json_spec.rb:171:in `block (4 levels) in <top (required)>'
     # /builddir/build/BUILD/spec/spec_helper.rb:12:in `silence_warnings'
     # ./spec/multi_json_spec.rb:171:in `block (3 levels) in <top (required)>'
Finished in 0.07467 seconds (files took 0.11595 seconds to load)
31 examples, 1 failure
Failed examples:
rspec ./spec/multi_json_spec.rb:168 # MultiJson default options sets both load and dump options

This is due to rspec/rspec-mocks#1394