spec/omniauth/identity/secure_password_spec.rb in omniauth-identity-2.0.0 vs spec/omniauth/identity/secure_password_spec.rb in omniauth-identity-3.0.0
- old
+ new
@@ -3,22 +3,22 @@
end
class DoesNotHaveTheMethod
end
-describe OmniAuth::Identity::SecurePassword do
- it 'should extend with the class methods if it does not have the method' do
+RSpec.describe OmniAuth::Identity::SecurePassword do
+ it 'extends with the class methods if it does not have the method' do
expect(DoesNotHaveTheMethod).to receive(:extend).with(OmniAuth::Identity::SecurePassword::ClassMethods)
- DoesNotHaveTheMethod.send(:include, OmniAuth::Identity::SecurePassword)
+ DoesNotHaveTheMethod.include OmniAuth::Identity::SecurePassword
end
- it 'should not extend if the method is already defined' do
+ it 'does not extend if the method is already defined' do
expect(HasTheMethod).not_to receive(:extend)
- HasTheMethod.send(:include, OmniAuth::Identity::SecurePassword)
+ HasTheMethod.include OmniAuth::Identity::SecurePassword
end
- it 'should respond to has_secure_password afterwards' do
- [HasTheMethod,DoesNotHaveTheMethod].each do |klass|
+ it 'responds to has_secure_password afterwards' do
+ [HasTheMethod, DoesNotHaveTheMethod].each do |klass|
klass.send(:include, OmniAuth::Identity::SecurePassword)
expect(klass).to be_respond_to(:has_secure_password)
end
end
end