We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f79d36 commit 3115c6eCopy full SHA for 3115c6e
spec/grape/integration/rack_spec.rb
@@ -18,6 +18,10 @@
18
'CONTENT_TYPE' => 'application/json'
19
}
20
env = Rack::MockRequest.env_for('/', options)
21
+
22
+ major, minor, release = Rack.release.split('.').map(&:to_i)
23
+ pending 'Rack 1.5.3 or 1.6.1 required' unless major >= 1 && ((minor == 5 && release >= 3) || (minor >= 6))
24
25
expect(JSON.parse(app.call(env)[2].body.first)['params_keys']).to match_array('test')
26
ensure
27
input.close
0 commit comments