Skip to content

Commit

Permalink
[ci skip] Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbulaj committed Jan 31, 2018
1 parent 543853d commit d87618a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ gemfile:
- gemfiles/rails_4_2.gemfile
- gemfiles/rails_5_0.gemfile
- gemfiles/rails_5_1.gemfile
- gemfiles/rails_5_2.gemfile
- gemfiles/rails_master.gemfile

matrix:
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/authorizations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe Doorkeeper::AuthorizationsController, 'implicit grant flow' do
include AuthorizationRequestHelper

if Rails::VERSION::MAJOR == 5
if Rails::VERSION::MAJOR >= 5
class ActionDispatch::TestResponse
def query_params
@_query_params ||= begin
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/endpoints/token_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
should_have_header 'Pragma', 'no-cache'

# Rails 5.2 changed headers
if ::Rails::VERSION::MAJOR >= 5 && ::Rails::VERSION::MINOR >= 2
if ::Rails::VERSION::MAJOR >= 5 && ::Rails::VERSION::MINOR >= 2 || ::Rails::VERSION::MAJOR >= 6
should_have_header 'Cache-Control', 'private, no-store'
else
should_have_header 'Cache-Control', 'no-store'
Expand Down

0 comments on commit d87618a

Please sign in to comment.