spec/grape/dsl/routing_spec.rb in grape-0.13.0 vs spec/grape/dsl/routing_spec.rb in grape-0.14.0
- old
+ new
@@ -226,10 +226,10 @@
expect(subject).to receive(:namespace).with(':foo', {}).and_yield
subject.route_param('foo', {}, &proc {})
end
let(:regex) { /(.*)/ }
- let!(:options) { { requirements: regex } }
+ let!(:options) { { requirements: regex } }
it 'nests requirements option under param name' do
expect(subject).to receive(:namespace) do |_param, options|
expect(options[:requirements][:foo]).to eq regex
end
subject.route_param('foo', options, &proc {})