contour 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +12 -2
- data/README.rdoc +2 -2
- data/config/initializers/devise.rb +3 -0
- data/config/routes.rb +3 -3
- data/contour.gemspec +10 -8
- data/lib/contour/fixes.rb +2 -2
- data/lib/contour/fixes/devise.rb +0 -19
- data/lib/contour/version.rb +2 -2
- data/test/dummy/config/initializers/action_mailer.rb +1 -0
- data/test/dummy/db/migrate/20111203203123_devise_create_users.rb +10 -10
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +7357 -0
- data/test/functional/authentications_controller_test.rb +5 -5
- data/test/functional/passwords_controller_test.rb +28 -0
- data/test/functional/registrations_controller_test.rb +4 -4
- metadata +42 -26
@@ -24,7 +24,7 @@ class Contour::AuthenticationsControllerTest < ActionController::TestCase
|
|
24
24
|
# TODO Redirects to Authentication Controller if user logged in, if not redirect to user sign up.
|
25
25
|
test "should create authentication" do
|
26
26
|
assert_difference('Authentication.count') do
|
27
|
-
post :create, :
|
27
|
+
post :create, authentication: @authentication.attributes
|
28
28
|
end
|
29
29
|
|
30
30
|
assert_redirected_to authentications_path
|
@@ -32,25 +32,25 @@ class Contour::AuthenticationsControllerTest < ActionController::TestCase
|
|
32
32
|
|
33
33
|
# TODO: Remove
|
34
34
|
# test "should show authentication" do
|
35
|
-
# get :show, :
|
35
|
+
# get :show, id: @authentication.to_param
|
36
36
|
# assert_response :success
|
37
37
|
# end
|
38
38
|
|
39
39
|
# TODO: Remove
|
40
40
|
# test "should get edit" do
|
41
|
-
# get :edit, :
|
41
|
+
# get :edit, id: @authentication.to_param
|
42
42
|
# assert_response :success
|
43
43
|
# end
|
44
44
|
|
45
45
|
# TODO: Remove
|
46
46
|
# test "should update authentication" do
|
47
|
-
# put :update, :
|
47
|
+
# put :update, id: @authentication.to_param, authentication: @authentication.attributes
|
48
48
|
# assert_redirected_to authentication_path(assigns(:authentication))
|
49
49
|
# end
|
50
50
|
|
51
51
|
test "should destroy authentication" do
|
52
52
|
assert_difference('Authentication.count', -1) do
|
53
|
-
delete :destroy, :
|
53
|
+
delete :destroy, id: @authentication.to_param
|
54
54
|
end
|
55
55
|
|
56
56
|
assert_redirected_to authentications_path
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Contour::PasswordsControllerTest < ActionController::TestCase
|
4
|
+
setup do
|
5
|
+
# login(users(:admin))
|
6
|
+
request.env["devise.mapping"] = Devise.mappings[:user]
|
7
|
+
end
|
8
|
+
|
9
|
+
test "should be able to view forget password" do
|
10
|
+
get :new
|
11
|
+
assert_response :success
|
12
|
+
end
|
13
|
+
|
14
|
+
test "should be able to request new password" do
|
15
|
+
post :create, user: { email: 'valid@example.com' }
|
16
|
+
assert_equal I18n.t('devise.passwords.send_instructions'), flash[:notice]
|
17
|
+
assert_redirected_to new_user_session_path
|
18
|
+
end
|
19
|
+
|
20
|
+
# test "an admin should be able to create new user" do
|
21
|
+
# assert_difference('User.count') do
|
22
|
+
# post :create, user: { first_name: 'First Name', last_name: 'Last Name', status: 'active', email: 'new_registration@example.com',
|
23
|
+
# steering_committee: true, steering_committee_secretary: false, pp_committee: false, pp_committee_secretary: false, system_admin: false }
|
24
|
+
# end
|
25
|
+
#
|
26
|
+
# assert_redirected_to user_path(assigns(:user))
|
27
|
+
# end
|
28
|
+
end
|
@@ -5,13 +5,13 @@ class Contour::RegistrationsControllerTest < ActionController::TestCase
|
|
5
5
|
login(users(:admin))
|
6
6
|
request.env["devise.mapping"] = Devise.mappings[:user]
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
9
|
# test "an admin should be able to create new user" do
|
10
10
|
# assert_difference('User.count') do
|
11
|
-
# post :create, :
|
12
|
-
# :
|
11
|
+
# post :create, user: { first_name: 'First Name', last_name: 'Last Name', status: 'active', email: 'new_registration@example.com',
|
12
|
+
# steering_committee: true, steering_committee_secretary: false, pp_committee: false, pp_committee_secretary: false, system_admin: false }
|
13
13
|
# end
|
14
|
-
#
|
14
|
+
#
|
15
15
|
# assert_redirected_to user_path(assigns(:user))
|
16
16
|
# end
|
17
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contour
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70266697995800 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.
|
21
|
+
version: 3.2.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70266697995800
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: jquery-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &70266697994460 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,21 +32,21 @@ dependencies:
|
|
32
32
|
version: 2.0.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70266697994460
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: devise
|
38
|
-
requirement: &
|
38
|
+
requirement: &70266697992760 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 2.0.
|
43
|
+
version: 2.0.1
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70266697992760
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: omniauth
|
49
|
-
requirement: &
|
49
|
+
requirement: &70266697990360 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.0.2
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70266697990360
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: omniauth-openid
|
60
|
-
requirement: &
|
60
|
+
requirement: &70266698011700 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.0.1
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70266698011700
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: omniauth-ldap
|
71
|
-
requirement: &
|
71
|
+
requirement: &70266698010000 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,21 +76,21 @@ dependencies:
|
|
76
76
|
version: 1.0.2
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70266698010000
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: omniauth-twitter
|
82
|
-
requirement: &
|
82
|
+
requirement: &70266698008900 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: 0.0.
|
87
|
+
version: 0.0.8
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70266698008900
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: omniauth-facebook
|
93
|
-
requirement: &
|
93
|
+
requirement: &70266698007560 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 1.2.0
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70266698007560
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: omniauth-linkedin
|
104
|
-
requirement: &
|
104
|
+
requirement: &70266698006800 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,18 +109,29 @@ dependencies:
|
|
109
109
|
version: 0.0.6
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70266698006800
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: omniauth-cas
|
115
|
-
requirement: &
|
115
|
+
requirement: &70266698005400 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 0.0.
|
120
|
+
version: 0.0.5
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70266698005400
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: sqlite3
|
126
|
+
requirement: &70266698019040 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *70266698019040
|
124
135
|
description: Basic Rails Framework files and assets for layout and authentication
|
125
136
|
email: remosm@gmail.com
|
126
137
|
executables: []
|
@@ -1074,6 +1085,7 @@ files:
|
|
1074
1085
|
- app/views/contour/registrations/new.html.erb
|
1075
1086
|
- app/views/contour/samples/index.html.erb
|
1076
1087
|
- app/views/contour/sessions/new.html.erb
|
1088
|
+
- config/initializers/devise.rb
|
1077
1089
|
- config/routes.rb
|
1078
1090
|
- lib/contour/engine.rb
|
1079
1091
|
- lib/contour/fixes/devise.rb
|
@@ -1109,6 +1121,7 @@ files:
|
|
1109
1121
|
- test/dummy/config/environments/development.rb
|
1110
1122
|
- test/dummy/config/environments/production.rb
|
1111
1123
|
- test/dummy/config/environments/test.rb
|
1124
|
+
- test/dummy/config/initializers/action_mailer.rb
|
1112
1125
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
1113
1126
|
- test/dummy/config/initializers/devise.rb
|
1114
1127
|
- test/dummy/config/initializers/inflections.rb
|
@@ -1134,6 +1147,7 @@ files:
|
|
1134
1147
|
- test/dummy/test/fixtures/authentications.yml
|
1135
1148
|
- test/dummy/test/fixtures/users.yml
|
1136
1149
|
- test/functional/authentications_controller_test.rb
|
1150
|
+
- test/functional/passwords_controller_test.rb
|
1137
1151
|
- test/functional/registrations_controller_test.rb
|
1138
1152
|
- test/integration/navigation_test.rb
|
1139
1153
|
- test/test_helper.rb
|
@@ -1181,6 +1195,7 @@ test_files:
|
|
1181
1195
|
- test/dummy/config/environments/development.rb
|
1182
1196
|
- test/dummy/config/environments/production.rb
|
1183
1197
|
- test/dummy/config/environments/test.rb
|
1198
|
+
- test/dummy/config/initializers/action_mailer.rb
|
1184
1199
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
1185
1200
|
- test/dummy/config/initializers/devise.rb
|
1186
1201
|
- test/dummy/config/initializers/inflections.rb
|
@@ -1206,6 +1221,7 @@ test_files:
|
|
1206
1221
|
- test/dummy/test/fixtures/authentications.yml
|
1207
1222
|
- test/dummy/test/fixtures/users.yml
|
1208
1223
|
- test/functional/authentications_controller_test.rb
|
1224
|
+
- test/functional/passwords_controller_test.rb
|
1209
1225
|
- test/functional/registrations_controller_test.rb
|
1210
1226
|
- test/integration/navigation_test.rb
|
1211
1227
|
- test/test_helper.rb
|