diff --git a/spec/integration/omniauth/Rakefile b/spec/integration/omniauth/Rakefile index c611f394..1cc9d4f5 100644 --- a/spec/integration/omniauth/Rakefile +++ b/spec/integration/omniauth/Rakefile @@ -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 diff --git a/spec/integration/omniauth/app.rb b/spec/integration/omniauth/app.rb index dc0a2600..4fb0745f 100644 --- a/spec/integration/omniauth/app.rb +++ b/spec/integration/omniauth/app.rb @@ -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