contour 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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, :authentication => @authentication.attributes
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, :id => @authentication.to_param
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, :id => @authentication.to_param
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, :id => @authentication.to_param, :authentication => @authentication.attributes
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, :id => @authentication.to_param
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, :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}
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.3
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-01-20 00:00:00.000000000 Z
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: &70120462580120 !ruby/object:Gem::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.0
21
+ version: 3.2.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70120462580120
24
+ version_requirements: *70266697995800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &70120462579620 !ruby/object:Gem::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: *70120462579620
35
+ version_requirements: *70266697994460
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: devise
38
- requirement: &70120462579160 !ruby/object:Gem::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.0.rc
43
+ version: 2.0.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70120462579160
46
+ version_requirements: *70266697992760
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: omniauth
49
- requirement: &70120462578700 !ruby/object:Gem::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: *70120462578700
57
+ version_requirements: *70266697990360
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: omniauth-openid
60
- requirement: &70120462578240 !ruby/object:Gem::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: *70120462578240
68
+ version_requirements: *70266698011700
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: omniauth-ldap
71
- requirement: &70120462577780 !ruby/object:Gem::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: *70120462577780
79
+ version_requirements: *70266698010000
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: omniauth-twitter
82
- requirement: &70120462577320 !ruby/object:Gem::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.7
87
+ version: 0.0.8
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70120462577320
90
+ version_requirements: *70266698008900
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: omniauth-facebook
93
- requirement: &70120462576860 !ruby/object:Gem::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: *70120462576860
101
+ version_requirements: *70266698007560
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: omniauth-linkedin
104
- requirement: &70120462576400 !ruby/object:Gem::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: *70120462576400
112
+ version_requirements: *70266698006800
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: omniauth-cas
115
- requirement: &70120462575940 !ruby/object:Gem::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.3
120
+ version: 0.0.5
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70120462575940
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