spec/services/landable/authentication_service_spec.rb in landable-1.7.1.rc1 vs spec/services/landable/authentication_service_spec.rb in landable-1.8.0
- old
+ new
@@ -12,10 +12,10 @@
let(:echo_auth) do
Landable::AuthenticationService::EchoAuthenticator
end
before do
- Landable.configuration.stub!(authenticators: [simple_auth, echo_auth])
+ Landable.configuration.stub(authenticators: [simple_auth, echo_auth])
end
it "returns the result of the first successful authentication strategy" do
described_class.call('simple', 'authenticator')[:username].should == 'simple'
described_class.call('echo', 'echo')[:username].should == 'echo'