omniauth-identity 3.0.9 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +109 -54
- data/LICENSE +3 -3
- data/README.md +239 -88
- data/lib/omniauth/identity/model.rb +19 -17
- data/lib/omniauth/identity/models/active_record.rb +4 -3
- data/lib/omniauth/identity/models/couch_potato.rb +6 -5
- data/lib/omniauth/identity/models/mongoid.rb +5 -4
- data/lib/omniauth/identity/models/nobrainer.rb +5 -4
- data/lib/omniauth/identity/models/sequel.rb +28 -15
- data/lib/omniauth/identity/secure_password.rb +51 -24
- data/lib/{omniauth-identity → omniauth/identity}/version.rb +3 -1
- data/lib/omniauth/identity.rb +25 -9
- data/lib/omniauth/strategies/identity.rb +25 -28
- data/lib/omniauth-identity.rb +13 -2
- data.tar.gz.sig +0 -0
- metadata +121 -38
- metadata.gz.sig +0 -0
- data/spec/omniauth/identity/model_spec.rb +0 -44
- data/spec/omniauth/identity/models/active_record_spec.rb +0 -40
- data/spec/omniauth/identity/models/sequel_spec.rb +0 -39
- data/spec/omniauth/identity/secure_password_spec.rb +0 -27
- data/spec/omniauth/strategies/identity_spec.rb +0 -373
- data/spec/spec_helper.rb +0 -40
- data/spec/support/shared_contexts/instance_with_instance_methods.rb +0 -89
- data/spec/support/shared_contexts/model_with_class_methods.rb +0 -29
- data/spec/support/shared_contexts/persistable_model.rb +0 -24
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
RSpec.shared_context 'persistable model' do
|
4
|
-
include_context 'model with class methods'
|
5
|
-
|
6
|
-
describe 'instance methods' do
|
7
|
-
subject(:instance) { model_klass.new }
|
8
|
-
|
9
|
-
include_context 'instance with instance methods'
|
10
|
-
|
11
|
-
describe '#save' do
|
12
|
-
subject(:save) do
|
13
|
-
instance.email = DEFAULT_EMAIL
|
14
|
-
instance.password = DEFAULT_PASSWORD
|
15
|
-
instance.password_confirmation = DEFAULT_PASSWORD
|
16
|
-
instance.save
|
17
|
-
end
|
18
|
-
|
19
|
-
it 'does not raise an error' do
|
20
|
-
save
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|