Browse files

Simplified specs for travis

  • Loading branch information...
1 parent 0d0250a commit 4a8c470a6690791e5d9cb2946f537d3e73c0123f @dim dim committed Oct 27, 2011
View
2 spec/bsm/sso/client/strategies/base_spec.rb
@@ -3,7 +3,7 @@
describe Bsm::Sso::Client::Strategies::Base do
subject do
- Warden::Strategies[:sso_ticket].new(env_with_params)
+ described_class.new(env_with_params)
end
it { should be_a(described_class) }
View
2 spec/bsm/sso/client/strategies/http_auth_spec.rb
@@ -5,7 +5,7 @@
def strategy(authorization = nil)
env = {}
env['HTTP_AUTHORIZATION'] = authorization if authorization
- Warden::Strategies[:sso_http_auth].new(env_with_params('/', {}, env))
+ described_class.new(env_with_params('/', {}, env))
end
it { strategy.should be_a(described_class) }
View
2 spec/bsm/sso/client/strategies/ticket_spec.rb
@@ -3,7 +3,7 @@
describe Bsm::Sso::Client::Strategies::Ticket do
def strategy(params = {})
- Warden::Strategies[:sso_ticket].new(env_with_params('/', params))
+ described_class.new(env_with_params('/', params))
end
it { strategy.should be_a(described_class) }

0 comments on commit 4a8c470

Please sign in to comment.