Skip to content

Commit

Permalink
Mark spec pending when using Rack <= 1.6.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Jan 2, 2015
1 parent c72181d commit 4b03952
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pkg
.yardoc/*
dist
Gemfile.lock
gemfiles/*.lock
tmp

## Rubinius
Expand Down
6 changes: 6 additions & 0 deletions spec/grape/integration/rack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@
'CONTENT_TYPE' => 'application/json'
}
env = Rack::MockRequest.env_for('/', options)

# requires Rack 1.6.0 to pass
# can't check explicitly version of Rack because of https://github.com/rack/rack/issues/773
pending 'Rack 1.6.0 is required' unless ::Rack.const_defined?(:TempfileReaper) || RUBY_PLATFORM == 'java'

expect(JSON.parse(app.call(env)[2].body.first)['params_keys']).to match_array(%w(route_info test))
ensure
input.close
input.unlink
end
end
Expand Down

0 comments on commit 4b03952

Please sign in to comment.