Skip to content

Commit a45dae8

Browse files
committed
Issue is not present on JRuby.
1 parent 3115c6e commit a45dae8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/grape/integration/rack_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
}
2020
env = Rack::MockRequest.env_for('/', options)
2121

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))
22+
unless RUBY_PLATFORM == 'java'
23+
major, minor, release = Rack.release.split('.').map(&:to_i)
24+
pending 'Rack 1.5.3 or 1.6.1 required' unless major >= 1 && ((minor == 5 && release >= 3) || (minor >= 6))
25+
end
2426

2527
expect(JSON.parse(app.call(env)[2].body.first)['params_keys']).to match_array('test')
2628
ensure

0 commit comments

Comments
 (0)