Skip to content

Commit

Permalink
Merge pull request #214 from stanhu/sh-fix-ci
Browse files Browse the repository at this point in the history
ci: make all tests pass again
  • Loading branch information
nbulaj authored Nov 28, 2024
2 parents ab28ba3 + 7caee3b commit dec2d4f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
Ruby ${{ matrix.ruby }} (${{ matrix.gemfile }})
env:
CI: true
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}

runs-on: ${{ matrix.os }}
if: |
Expand Down
5 changes: 4 additions & 1 deletion doorkeeper-openid_connect.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.7'

spec.add_runtime_dependency 'doorkeeper', '>= 5.5', '< 5.8'
spec.add_runtime_dependency 'doorkeeper', '>= 5.5', '< 5.9'
spec.add_runtime_dependency 'jwt', '>= 2.5'

spec.add_development_dependency 'bigdecimal'
spec.add_development_dependency 'conventional-changelog', '~> 1.2'
spec.add_development_dependency 'drb'
spec.add_development_dependency 'factory_bot'
spec.add_development_dependency 'mutex_m'
spec.add_development_dependency 'pry-byebug'
spec.add_development_dependency 'rspec-rails'
spec.add_development_dependency 'sqlite3', '>= 1.3.6'
Expand Down
4 changes: 2 additions & 2 deletions spec/controllers/doorkeeper/authorizations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ def expect_successful_callback!
it 'render error when client_id is missing' do
authorize!(client_id: nil)

expect(response).to be_successful
expect(response).to have_http_status(:bad_request)
expect(response).to render_template('doorkeeper/authorizations/error')
end

it 'render error when response_type is missing' do
authorize!(response_type: nil)

expect(response).to be_successful
expect(response).to have_http_status(:bad_request)
expect(response).to render_template('doorkeeper/authorizations/error')
end
end
Expand Down
5 changes: 4 additions & 1 deletion spec/dummy/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
config.action_controller.perform_caching = false

# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false
# Rails 7.1 deprecated false in favor of :none, but we need to use false for
# backwards compatibility: https://github.com/rails/rails/pull/45867
config.action_dispatch.show_exceptions =
Rails.gem_version >= Gem::Version.new('7.1.0') ? :none : false

# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
Expand Down

0 comments on commit dec2d4f

Please sign in to comment.