Skip to content

Commit 3115c6e

Browse files
committed
Fix: build for Rails 3 integration.
1 parent 7f79d36 commit 3115c6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/grape/integration/rack_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
'CONTENT_TYPE' => 'application/json'
1919
}
2020
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+
2125
expect(JSON.parse(app.call(env)[2].body.first)['params_keys']).to match_array('test')
2226
ensure
2327
input.close

0 commit comments

Comments
 (0)