Skip to content

Commit 256c3d4

Browse files
author
Ping Yu
committed
removed the rspec deprecation.
1 parent b4af89c commit 256c3d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/omniauth/strategies/ldap_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class MyLdapProvider < OmniAuth::Strategies::LDAP; end
4949

5050
describe 'post /auth/ldap/callback' do
5151
before(:each) do
52-
@adaptor = mock(OmniAuth::LDAP::Adaptor, {:uid => 'ping'})
52+
@adaptor = double(OmniAuth::LDAP::Adaptor, {:uid => 'ping'})
5353
OmniAuth::LDAP::Adaptor.stub(:new).and_return(@adaptor)
5454
end
5555

0 commit comments

Comments
 (0)