spec/grape/middleware/versioner/param_spec.rb in grape-0.11.0 vs spec/grape/middleware/versioner/param_spec.rb in grape-0.12.0

- old
+ new

@@ -1,8 +1,8 @@ require 'spec_helper' describe Grape::Middleware::Versioner::Param do - let(:app) { lambda { |env| [200, env, env['api.version']] } } + let(:app) { ->(env) { [200, env, env['api.version']] } } subject { Grape::Middleware::Versioner::Param.new(app, @options || {}) } it 'sets the API version based on the default param (apiver)' do env = Rack::MockRequest.env_for('/awesome', params: { 'apiver' => 'v1' }) expect(subject.call(env)[1]['api.version']).to eq('v1')