Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSpec 3.11.0+ distinguish between hashes and Ruby 3 keywords #205

Merged
merged 1 commit into from
Mar 11, 2024

Commits on Sep 6, 2022

  1. RSpec 3.11.0+ distinguish between hashes and Ruby 3 keywords

    This is due to change in RSpec [[1]], which cuases issues such as:
    
    ~~~
      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)>'
    ~~~
    
    Fixes intridea#203
    
    [1]: rspec/rspec-mocks#1394
    voxik committed Sep 6, 2022
    Configuration menu
    Copy the full SHA
    7a1d3f8 View commit details
    Browse the repository at this point in the history