This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
Unexpected arguments error with correct hash value #1505
Closed
Description
Subject of the issue
Coming from ruby-grape/grape#2247, getting unexpected arguments but expected value matches parameters.
Your environment
- Ruby version: 3.0.2
- rspec-expectations version: 3.10.0+ (worked in 3.9.0)
Steps to reproduce
I tried to get a small repro but so far have failed. If I have time will try to bisect next.
In Grape:
git clone [email protected]:ruby-grape/grape.git
rvm use 3.0.2
cd grape
git checkout 9687a88bafe8e75547f1fe5cb19e626b429ce475
bundle
rspec ./spec/grape/dsl/routing_spec.rb:19
Expected behavior
Arguments to match.
Actual behavior
1) Grape::DSL::Routing.version sets a version for route
Failure/Error: namespace_inheritable(:version_options, options)
#<#<Class:0x000055f796d81f10> (class)> received :namespace_inheritable with unexpected arguments
expected: (:version_options, {:using=>:path})
got: (:version_options, {:using=>:path})
# ./lib/grape/dsl/routing.rb:48:in `version'
# ./spec/grape/dsl/routing_spec.rb:23:in `block (3 levels) in <module:DSL>'
- Confirmed working in 3.9.0
- Confirmed broken in 3.10.0
- Confirmed still broken in 3.11.0
$ bundle show rspec-expectations
/Users/dblock/.rvm/gems/ruby-3.0.2/gems/rspec-expectations-3.11.0
Metadata
Metadata
Assignees
Labels
No labels