Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: integration tests in CI. #581

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion spec/integration/omniauth/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ namespace :perf do
task :setup do
require 'omniauth'
require 'rack/test'
require 'securerandom'
app = Rack::Builder.new do |b|
b.use Rack::Session::Cookie, secret: 'abc123'
b.use Rack::Session::Cookie, secret: SecureRandom.hex(64)
b.use OmniAuth::Strategies::Developer
b.run ->(_env) { [200, {}, ['Not Found']] }
end.to_app
Expand Down
3 changes: 2 additions & 1 deletion spec/integration/omniauth/app.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
require 'sinatra'
require 'omniauth'
require 'securerandom'

class MyApplication < Sinatra::Base
use Rack::Session::Cookie, secret: 'hashie integration tests'
use Rack::Session::Cookie, secret: SecureRandom.hex(64)
use OmniAuth::Strategies::Developer

get '/' do
Expand Down