Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Suppress rack security warnings

No secret option provided to Rack::Session::Cookie.
  • Loading branch information...
commit d0cb0834684b2b90516f7cf53ebc9fd580242725 1 parent 6ddc70b
@sferik sferik authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/omniauth/strategies/developer_spec.rb
View
4 spec/omniauth/strategies/developer_spec.rb
@@ -2,7 +2,7 @@
describe OmniAuth::Strategies::Developer do
let(:app){ Rack::Builder.new do |b|
- b.use Rack::Session::Cookie
+ b.use Rack::Session::Cookie, {:secret => "abc123"}
b.use OmniAuth::Strategies::Developer
b.run lambda{|env| [200, {}, ['Not Found']]}
end.to_app }
@@ -47,7 +47,7 @@
context "with custom options" do
let(:app){ Rack::Builder.new do |b|
- b.use Rack::Session::Cookie
+ b.use Rack::Session::Cookie, {:secret => "abc123"}
b.use OmniAuth::Strategies::Developer, :fields => [:first_name, :last_name], :uid_field => :last_name
b.run lambda{|env| [200, {}, ['Not Found']]}
end.to_app }
Please sign in to comment.
Something went wrong with that request. Please try again.