nyauth 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -5
- data/app/models/concerns/nyauth/authenticatable.rb +2 -0
- data/config/routes.rb +1 -2
- data/lib/nyauth/route.rb +1 -3
- data/lib/nyauth/version.rb +1 -1
- data/spec/dummy/config/routes.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +1146 -0
- data/spec/helpers/nyauth/application_helper_spec.rb +4 -4
- metadata +2 -2
@@ -62,7 +62,7 @@ RSpec.describe Nyauth::ApplicationHelper do
|
|
62
62
|
|
63
63
|
context 'when client_name is admin' do
|
64
64
|
let(:client_name) { :admin }
|
65
|
-
it { is_expected.to eq
|
65
|
+
it { is_expected.to eq "/admin/password" }
|
66
66
|
end
|
67
67
|
|
68
68
|
context 'when client_name is user' do
|
@@ -105,7 +105,7 @@ RSpec.describe Nyauth::ApplicationHelper do
|
|
105
105
|
|
106
106
|
context 'when client_name is admin' do
|
107
107
|
let(:client_name) { :admin }
|
108
|
-
it { is_expected.to eq
|
108
|
+
it { is_expected.to eq "/admin/reset_password_requests" }
|
109
109
|
end
|
110
110
|
|
111
111
|
context 'when client_name is user' do
|
@@ -119,7 +119,7 @@ RSpec.describe Nyauth::ApplicationHelper do
|
|
119
119
|
|
120
120
|
context 'when client_name is admin' do
|
121
121
|
let(:client_name) { :admin }
|
122
|
-
it { is_expected.to eq
|
122
|
+
it { is_expected.to eq "/admin/reset_password_requests/new" }
|
123
123
|
end
|
124
124
|
|
125
125
|
context 'when client_name is user' do
|
@@ -134,7 +134,7 @@ RSpec.describe Nyauth::ApplicationHelper do
|
|
134
134
|
|
135
135
|
context 'when client_name is admin' do
|
136
136
|
let(:client_name) { :admin }
|
137
|
-
it { is_expected.to eq
|
137
|
+
it { is_expected.to eq "/admin/reset_passwords/#{reset_password_key}" }
|
138
138
|
end
|
139
139
|
|
140
140
|
context 'when client_name is user' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nyauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ppworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|