spec/grape/middleware/versioner/param_spec.rb in grape-1.0.1 vs spec/grape/middleware/versioner/param_spec.rb in grape-1.0.2

- old
+ new

@@ -33,10 +33,10 @@ expect(subject.call(env)[1]['api.version']).to be_nil end end context 'with specified versions' do - let(:options) { { versions: %w(v1 v2) } } + let(:options) { { versions: %w[v1 v2] } } it 'throws an error if a non-allowed version is specified' do env = Rack::MockRequest.env_for('/awesome', params: { 'apiver' => 'v3' }) expect(catch(:error) { subject.call(env) }[:status]).to eq(404) end it 'allows versions that have been specified' do