refinerycms-authentication 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,8 @@
|
|
16
16
|
:class => "cancel confirm-delete",
|
17
17
|
:title => t('delete', :scope => 'refinery.admin.users'),
|
18
18
|
:method => :delete,
|
19
|
-
:
|
19
|
+
:data => {
|
20
|
+
:confirm => t('message', :scope => 'refinery.admin.delete', :title => user.username)
|
21
|
+
} if current_refinery_user.can_delete?(user) %>
|
20
22
|
</span>
|
21
23
|
</li>
|
@@ -6,7 +6,7 @@ module Refinery
|
|
6
6
|
let(:login_retry_path) { refinery.refinery_user_session_path }
|
7
7
|
let(:admin_path) { refinery.admin_root_path }
|
8
8
|
|
9
|
-
before
|
9
|
+
before do
|
10
10
|
FactoryGirl.create(:refinery_user, :username => "ugisozols",
|
11
11
|
:password => "123456",
|
12
12
|
:password_confirmation => "123456")
|
@@ -41,7 +41,7 @@ module Refinery
|
|
41
41
|
end
|
42
42
|
|
43
43
|
describe 'user sign up' do
|
44
|
-
before
|
44
|
+
before do
|
45
45
|
User.delete_all
|
46
46
|
end
|
47
47
|
|
@@ -70,7 +70,7 @@ module Refinery
|
|
70
70
|
let(:protected_path) { refinery.new_admin_user_path }
|
71
71
|
let(:login_path) { refinery.new_refinery_user_session_path }
|
72
72
|
|
73
|
-
before
|
73
|
+
before do
|
74
74
|
FactoryGirl.create(:refinery_user,
|
75
75
|
:username => "ugisozols",
|
76
76
|
:password => "123456",
|
@@ -79,7 +79,7 @@ module Refinery
|
|
79
79
|
end
|
80
80
|
|
81
81
|
context "when visiting a protected path" do
|
82
|
-
before
|
82
|
+
before { visit protected_path }
|
83
83
|
|
84
84
|
it "redirects to the login" do
|
85
85
|
current_path.should == login_path
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2012-
|
16
|
+
date: 2012-08-07 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: refinerycms-core
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
requirements:
|
23
23
|
- - '='
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: 2.0.
|
25
|
+
version: 2.0.6
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.0.
|
33
|
+
version: 2.0.6
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: devise
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
segments:
|
159
159
|
- 0
|
160
|
-
hash: -
|
160
|
+
hash: -705197577789087089
|
161
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
162
|
none: false
|
163
163
|
requirements:
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
version: '0'
|
167
167
|
segments:
|
168
168
|
- 0
|
169
|
-
hash: -
|
169
|
+
hash: -705197577789087089
|
170
170
|
requirements: []
|
171
171
|
rubyforge_project: refinerycms
|
172
172
|
rubygems_version: 1.8.22
|