user_impersonate2 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -10
  3. data/app/controllers/user_impersonate/impersonate_controller.rb +19 -8
  4. data/lib/user_impersonate/version.rb +1 -1
  5. data/test/test_utils.rb +3 -10
  6. metadata +66 -158
  7. data/test/dummy-rails3/README.rdoc +0 -261
  8. data/test/dummy-rails3/Rakefile +0 -7
  9. data/test/dummy-rails3/app/assets/javascripts/application.js +0 -15
  10. data/test/dummy-rails3/app/assets/javascripts/home.js +0 -2
  11. data/test/dummy-rails3/app/assets/stylesheets/application.css +0 -16
  12. data/test/dummy-rails3/app/assets/stylesheets/home.css +0 -7
  13. data/test/dummy-rails3/app/controllers/application_controller.rb +0 -3
  14. data/test/dummy-rails3/app/controllers/home_controller.rb +0 -4
  15. data/test/dummy-rails3/app/helpers/application_helper.rb +0 -2
  16. data/test/dummy-rails3/app/helpers/home_helper.rb +0 -2
  17. data/test/dummy-rails3/app/models/user.rb +0 -17
  18. data/test/dummy-rails3/app/views/home/index.html.erb +0 -11
  19. data/test/dummy-rails3/app/views/layouts/application.html.erb +0 -22
  20. data/test/dummy-rails3/app/views/user_impersonate/_header.html.erb +0 -65
  21. data/test/dummy-rails3/config.ru +0 -4
  22. data/test/dummy-rails3/config/application.rb +0 -60
  23. data/test/dummy-rails3/config/boot.rb +0 -10
  24. data/test/dummy-rails3/config/database.yml +0 -25
  25. data/test/dummy-rails3/config/environment.rb +0 -5
  26. data/test/dummy-rails3/config/environments/development.rb +0 -40
  27. data/test/dummy-rails3/config/environments/production.rb +0 -67
  28. data/test/dummy-rails3/config/environments/test.rb +0 -37
  29. data/test/dummy-rails3/config/initializers/backtrace_silencers.rb +0 -7
  30. data/test/dummy-rails3/config/initializers/devise.rb +0 -232
  31. data/test/dummy-rails3/config/initializers/mime_types.rb +0 -5
  32. data/test/dummy-rails3/config/initializers/secret_token.rb +0 -7
  33. data/test/dummy-rails3/config/initializers/session_store.rb +0 -8
  34. data/test/dummy-rails3/config/initializers/user_impersonate.rb +0 -45
  35. data/test/dummy-rails3/config/initializers/wrap_parameters.rb +0 -14
  36. data/test/dummy-rails3/config/locales/devise.en.yml +0 -58
  37. data/test/dummy-rails3/config/locales/en.yml +0 -5
  38. data/test/dummy-rails3/config/routes.rb +0 -8
  39. data/test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb +0 -48
  40. data/test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb +0 -5
  41. data/test/dummy-rails3/db/schema.rb +0 -36
  42. data/test/dummy-rails3/lib/tasks/cucumber.rake +0 -65
  43. data/test/dummy-rails3/public/404.html +0 -26
  44. data/test/dummy-rails3/public/422.html +0 -26
  45. data/test/dummy-rails3/public/500.html +0 -25
  46. data/test/dummy-rails3/public/favicon.ico +0 -0
  47. data/test/dummy-rails3/script/rails +0 -6
  48. data/test/dummy-rails3/test/fixtures/users.yml +0 -14
  49. data/test/dummy-rails3/test/unit/helpers/home_helper_test.rb +0 -4
  50. data/test/dummy-rails3/test/unit/user_test.rb +0 -7
  51. data/test/dummy-rails4/db/test.sqlite3 +0 -0
  52. data/test/dummy-rails4/log/test.log +0 -92
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 365f990714f186dd66b5d9bd664949148d57a0af
4
- data.tar.gz: 0f691fca3f1b82b0f7ed4a89c649acf42eadd757
3
+ metadata.gz: 79a8d52dbc3b903162e8d5e48efbf090e976fbea
4
+ data.tar.gz: 99a6aba712b1a0b73f3d20ac58f68fbc689f85d7
5
5
  SHA512:
6
- metadata.gz: eb7e715bda760de888c94f3243f0c1dab8d21f9f6d28f06c0b6f512a69d1ec4cbc26686e797420e97aab8c1a123eab3ecdca8056553ca56435aa73743f84d6f9
7
- data.tar.gz: 6b7333dfe663f696652690e4e10de2c46868cfa74fcdf2fe18b47801c7626cfd0d2d15d1f1487cb930f37c63dcfcad4e41fb9e3fd0c2e574c85ba1ef66efc775
6
+ metadata.gz: 2dde138bc1c9a7774efe5c1deb10fc9141cb997343832c9bbc93ee0b2e86d3ff9907cd70e8b8c8f6fba963dbc578b5f64393475584f66294fd1492fdae30e3d7
7
+ data.tar.gz: 6ae7f5a7d08a803119d428d2459c54cfafece7aabce5876e26a8c7740ca732237cfe37d00915d1e97576445baa8fb8720873be366ff7f55d7edc85c8e786e9ed
data/README.md CHANGED
@@ -7,8 +7,8 @@
7
7
  ## Note
8
8
 
9
9
  This is a fork of Engine Yard's no-longer-maintained [`user_impersonate`](https://github.com/engineyard/user_impersonate)
10
- gem and is its official successor. It supports Rails 3.2.x and Rails 4 and has
11
- been tested against Ruby 1.9.3, 2.0.0 and 2.1.0.
10
+ gem and is its official successor. It supports Rails from version 4.0 to Rails 5.1 (tests only exists for 4.0 though) and has
11
+ been tested against Ruby 1.9.3, 2.0.0, 2.1.0, 2.2 and 2.3.1.
12
12
 
13
13
  ## Overview
14
14
 
@@ -283,7 +283,7 @@ To install all gem dependencies for the active version of Ruby and for a given
283
283
  gemfile, you'll need to run the `bundle` command, e.g.
284
284
 
285
285
  ```bash
286
- BUNDLE_GEMFILE=Gemfile.rails3 bundle
286
+ BUNDLE_GEMFILE=Gemfile.rails4 bundle
287
287
  ```
288
288
 
289
289
  ### Running tests against all configurations (requires [rbenv](https://github.com/sstephenson/rbenv))
@@ -303,13 +303,7 @@ using the `bundle` command.
303
303
  ### Running tests against a single configuration
304
304
 
305
305
  To manually run the Travis-CI verification steps on your local machine, you can
306
- use the following sequence of commands for Rails 3.2.x:
307
-
308
- ```bash
309
- script/test -g Gemfile.rails3
310
- ```
311
-
312
- To test against Rails 4.0.x, use:
306
+ use the following sequence of commands for Rails 4.0.x:
313
307
 
314
308
  ```bash
315
309
  script/test -g Gemfile.rails4
@@ -2,8 +2,8 @@ require_dependency "user_impersonate/application_controller"
2
2
 
3
3
  module UserImpersonate
4
4
  class ImpersonateController < ApplicationController
5
- before_filter :authenticate_the_user, except: ["destroy"]
6
- before_filter :current_user_must_be_staff!, except: ["destroy"]
5
+ before_action :authenticate_the_user, except: ["destroy"]
6
+ before_action :current_user_must_be_staff!, except: ["destroy"]
7
7
 
8
8
 
9
9
  helper_method :current_staff
@@ -60,11 +60,8 @@ module UserImpersonate
60
60
 
61
61
  def current_user_must_be_staff!
62
62
  unless user_is_staff?(current_staff)
63
- flash[:error] = "You don't have access to this section."
64
- redirect_to :back
63
+ redirect_back(fallback_location: '/', error: "You don't have access to this section.")
65
64
  end
66
- rescue ActionController::RedirectBackError
67
- redirect_to '/'
68
65
  end
69
66
 
70
67
  # current_staff changes from a staff user to
@@ -78,10 +75,20 @@ module UserImpersonate
78
75
  # stored in +session[:staff_user_id]+
79
76
  def revert_impersonate
80
77
  return unless current_staff_user
78
+ sign_out_user current_user
81
79
  sign_in_user current_staff_user
82
80
  session[:staff_user_id] = nil
83
81
  end
84
82
 
83
+ def sign_out_user(user)
84
+ # Only need to sign out if the staff class is different to the
85
+ # user being impersonated
86
+ if user_class_name != staff_class_name
87
+ method = config_or_default :sign_out_user_method, "sign_out"
88
+ self.send(method.to_sym, user)
89
+ end
90
+ end
91
+
85
92
  def sign_in_user(user)
86
93
  method = config_or_default :sign_in_user_method, "sign_in"
87
94
  self.send(method.to_sym, user)
@@ -132,14 +139,18 @@ module UserImpersonate
132
139
  config_or_default :user_is_staff_method, "staff?"
133
140
  end
134
141
 
142
+ def staff_class_name
143
+ config_or_default :staff_class, "User"
144
+ end
145
+
135
146
  def redirect_on_impersonate(impersonated_user)
136
147
  url = config_or_default :redirect_on_impersonate, root_url
137
148
  redirect_to url
138
149
  end
139
150
 
140
- def redirect_on_revert(impersonated_user = nil)
151
+ def redirect_on_revert(impersonated_user = nil, redirect_params = params)
141
152
  url = config_or_default :redirect_on_revert, root_url
142
- redirect_to url
153
+ redirect_to url, {}.merge(redirect_params.permit) # NOTE: not sure at this point what params does it need.
143
154
  end
144
155
 
145
156
  # gets overridden config value for engine, else returns default
@@ -1,3 +1,3 @@
1
1
  module UserImpersonate
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
@@ -10,13 +10,11 @@ module TestUtils
10
10
  def rails_version_in_range?(minimum_version, maximum_version)
11
11
  minimum_version = Gem::Version.new(minimum_version) if minimum_version.is_a?(String)
12
12
  maximum_version = Gem::Version.new(maximum_version) if maximum_version.is_a?(String)
13
- minimum_version <= rails_version && rails_version < maximum_version
13
+ minimum_version <= rails_version && rails_version <= maximum_version
14
14
  end
15
15
 
16
16
  def dummy_app_dir
17
- major_version = if rails_3?
18
- '3'
19
- elsif rails_4?
17
+ major_version = if rails_4?
20
18
  '4'
21
19
  else
22
20
  raise "Unsupported Rails version #{TestUtils.rails_version}"
@@ -38,12 +36,7 @@ module TestUtils
38
36
  rails_3? ? ActiveRecord::Fixtures : ActiveRecord::FixtureSet
39
37
  end
40
38
 
41
- def rails_3?
42
- rails_version_in_range?('3.2.0', '4.0.0')
43
- end
44
-
45
39
  def rails_4?
46
- rails_version_in_range?('4.0.0', '5.0.0')
40
+ rails_version_in_range?('4.0.0', '5.1.3')
47
41
  end
48
42
  end
49
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_impersonate2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Cook
@@ -10,104 +10,104 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-07-04 00:00:00.000000000 Z
13
+ date: 2018-02-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ">="
19
+ - - '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.0
21
+ version: 5.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ">="
26
+ - - '>='
27
27
  - !ruby/object:Gem::Version
28
- version: 3.2.0
28
+ version: 5.1.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sqlite3
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ">="
33
+ - - '>='
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ">="
40
+ - - '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: cucumber-rails
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
47
+ - - '>='
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ">="
54
+ - - '>='
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: database_cleaner
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
61
+ - - '>='
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ">="
68
+ - - '>='
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: guard
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ">="
75
+ - - '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ">="
82
+ - - '>='
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: guard-cucumber
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ">="
89
+ - - '>='
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ">="
96
+ - - '>='
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: launchy
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - ">="
103
+ - - '>='
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ">="
110
+ - - '>='
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  description: Allow staff users to pretend to be your customers; to impersonate their
@@ -117,9 +117,6 @@ executables: []
117
117
  extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
- - MIT-LICENSE
121
- - README.md
122
- - Rakefile
123
120
  - app/assets/javascripts/user_impersonate/application.js
124
121
  - app/assets/javascripts/user_impersonate/impersonate.js
125
122
  - app/assets/stylesheets/user_impersonate/application.css
@@ -132,61 +129,18 @@ files:
132
129
  - app/views/user_impersonate/impersonate/index.html.erb
133
130
  - config/cucumber.yml
134
131
  - config/routes.rb
135
- - lib/generators/user_impersonate/USAGE
136
132
  - lib/generators/user_impersonate/templates/app/views/user_impersonate/_header.html.erb
137
133
  - lib/generators/user_impersonate/templates/config/initializers/user_impersonate.rb
134
+ - lib/generators/user_impersonate/USAGE
138
135
  - lib/generators/user_impersonate/user_impersonate_generator.rb
139
136
  - lib/tasks/user_impersonate_tasks.rake
140
- - lib/user_impersonate.rb
141
137
  - lib/user_impersonate/devise_helpers.rb
142
138
  - lib/user_impersonate/engine.rb
143
139
  - lib/user_impersonate/version.rb
144
- - test/dummy-rails3/README.rdoc
145
- - test/dummy-rails3/Rakefile
146
- - test/dummy-rails3/app/assets/javascripts/application.js
147
- - test/dummy-rails3/app/assets/javascripts/home.js
148
- - test/dummy-rails3/app/assets/stylesheets/application.css
149
- - test/dummy-rails3/app/assets/stylesheets/home.css
150
- - test/dummy-rails3/app/controllers/application_controller.rb
151
- - test/dummy-rails3/app/controllers/home_controller.rb
152
- - test/dummy-rails3/app/helpers/application_helper.rb
153
- - test/dummy-rails3/app/helpers/home_helper.rb
154
- - test/dummy-rails3/app/models/user.rb
155
- - test/dummy-rails3/app/views/home/index.html.erb
156
- - test/dummy-rails3/app/views/layouts/application.html.erb
157
- - test/dummy-rails3/app/views/user_impersonate/_header.html.erb
158
- - test/dummy-rails3/config.ru
159
- - test/dummy-rails3/config/application.rb
160
- - test/dummy-rails3/config/boot.rb
161
- - test/dummy-rails3/config/database.yml
162
- - test/dummy-rails3/config/environment.rb
163
- - test/dummy-rails3/config/environments/development.rb
164
- - test/dummy-rails3/config/environments/production.rb
165
- - test/dummy-rails3/config/environments/test.rb
166
- - test/dummy-rails3/config/initializers/backtrace_silencers.rb
167
- - test/dummy-rails3/config/initializers/devise.rb
168
- - test/dummy-rails3/config/initializers/mime_types.rb
169
- - test/dummy-rails3/config/initializers/secret_token.rb
170
- - test/dummy-rails3/config/initializers/session_store.rb
171
- - test/dummy-rails3/config/initializers/user_impersonate.rb
172
- - test/dummy-rails3/config/initializers/wrap_parameters.rb
173
- - test/dummy-rails3/config/locales/devise.en.yml
174
- - test/dummy-rails3/config/locales/en.yml
175
- - test/dummy-rails3/config/routes.rb
176
- - test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb
177
- - test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb
178
- - test/dummy-rails3/db/schema.rb
179
- - test/dummy-rails3/lib/tasks/cucumber.rake
180
- - test/dummy-rails3/public/404.html
181
- - test/dummy-rails3/public/422.html
182
- - test/dummy-rails3/public/500.html
183
- - test/dummy-rails3/public/favicon.ico
184
- - test/dummy-rails3/script/rails
185
- - test/dummy-rails3/test/fixtures/users.yml
186
- - test/dummy-rails3/test/unit/helpers/home_helper_test.rb
187
- - test/dummy-rails3/test/unit/user_test.rb
188
- - test/dummy-rails4/README.rdoc
189
- - test/dummy-rails4/Rakefile
140
+ - lib/user_impersonate.rb
141
+ - MIT-LICENSE
142
+ - Rakefile
143
+ - README.md
190
144
  - test/dummy-rails4/app/assets/javascripts/application.js
191
145
  - test/dummy-rails4/app/assets/javascripts/home.js
192
146
  - test/dummy-rails4/app/assets/stylesheets/application.css
@@ -199,7 +153,6 @@ files:
199
153
  - test/dummy-rails4/app/views/home/index.html.erb
200
154
  - test/dummy-rails4/app/views/layouts/application.html.erb
201
155
  - test/dummy-rails4/app/views/user_impersonate/_header.html.erb
202
- - test/dummy-rails4/config.ru
203
156
  - test/dummy-rails4/config/application.rb
204
157
  - test/dummy-rails4/config/boot.rb
205
158
  - test/dummy-rails4/config/database.yml
@@ -217,16 +170,17 @@ files:
217
170
  - test/dummy-rails4/config/locales/devise.en.yml
218
171
  - test/dummy-rails4/config/locales/en.yml
219
172
  - test/dummy-rails4/config/routes.rb
173
+ - test/dummy-rails4/config.ru
220
174
  - test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb
221
175
  - test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
222
176
  - test/dummy-rails4/db/schema.rb
223
- - test/dummy-rails4/db/test.sqlite3
224
177
  - test/dummy-rails4/lib/tasks/cucumber.rake
225
- - test/dummy-rails4/log/test.log
226
178
  - test/dummy-rails4/public/404.html
227
179
  - test/dummy-rails4/public/422.html
228
180
  - test/dummy-rails4/public/500.html
229
181
  - test/dummy-rails4/public/favicon.ico
182
+ - test/dummy-rails4/Rakefile
183
+ - test/dummy-rails4/README.rdoc
230
184
  - test/dummy-rails4/script/rails
231
185
  - test/dummy-rails4/test/fixtures/users.yml
232
186
  - test/dummy-rails4/test/unit/helpers/home_helper_test.rb
@@ -248,115 +202,69 @@ require_paths:
248
202
  - lib
249
203
  required_ruby_version: !ruby/object:Gem::Requirement
250
204
  requirements:
251
- - - ">="
205
+ - - '>='
252
206
  - !ruby/object:Gem::Version
253
207
  version: '0'
254
208
  required_rubygems_version: !ruby/object:Gem::Requirement
255
209
  requirements:
256
- - - ">="
210
+ - - '>='
257
211
  - !ruby/object:Gem::Version
258
212
  version: '0'
259
213
  requirements: []
260
214
  rubyforge_project:
261
- rubygems_version: 2.2.5
215
+ rubygems_version: 2.0.14.1
262
216
  signing_key:
263
217
  specification_version: 4
264
218
  summary: Allow staff users to pretend to be your customers
265
219
  test_files:
266
- - test/unit/helpers/user_impersonate/devise_helpers_test.rb
267
- - test/unit/helpers/user_impersonate/impersonate_helper_test.rb
268
- - test/integration/navigation_test.rb
269
- - test/test_helper.rb
270
- - test/dummy-rails4/config/database.yml
271
- - test/dummy-rails4/config/routes.rb
220
+ - test/dummy-rails4/app/assets/javascripts/application.js
221
+ - test/dummy-rails4/app/assets/javascripts/home.js
222
+ - test/dummy-rails4/app/assets/stylesheets/application.css
223
+ - test/dummy-rails4/app/assets/stylesheets/home.css
224
+ - test/dummy-rails4/app/controllers/application_controller.rb
225
+ - test/dummy-rails4/app/controllers/home_controller.rb
226
+ - test/dummy-rails4/app/helpers/application_helper.rb
227
+ - test/dummy-rails4/app/helpers/home_helper.rb
228
+ - test/dummy-rails4/app/models/user.rb
229
+ - test/dummy-rails4/app/views/home/index.html.erb
230
+ - test/dummy-rails4/app/views/layouts/application.html.erb
231
+ - test/dummy-rails4/app/views/user_impersonate/_header.html.erb
232
+ - test/dummy-rails4/config/application.rb
272
233
  - test/dummy-rails4/config/boot.rb
234
+ - test/dummy-rails4/config/database.yml
235
+ - test/dummy-rails4/config/environment.rb
236
+ - test/dummy-rails4/config/environments/development.rb
273
237
  - test/dummy-rails4/config/environments/production.rb
274
238
  - test/dummy-rails4/config/environments/test.rb
275
- - test/dummy-rails4/config/environments/development.rb
276
- - test/dummy-rails4/config/environment.rb
277
- - test/dummy-rails4/config/application.rb
278
- - test/dummy-rails4/config/locales/devise.en.yml
279
- - test/dummy-rails4/config/locales/en.yml
280
- - test/dummy-rails4/config/initializers/mime_types.rb
281
- - test/dummy-rails4/config/initializers/wrap_parameters.rb
282
- - test/dummy-rails4/config/initializers/user_impersonate.rb
283
- - test/dummy-rails4/config/initializers/session_store.rb
284
- - test/dummy-rails4/config/initializers/devise.rb
285
239
  - test/dummy-rails4/config/initializers/backtrace_silencers.rb
240
+ - test/dummy-rails4/config/initializers/devise.rb
241
+ - test/dummy-rails4/config/initializers/mime_types.rb
286
242
  - test/dummy-rails4/config/initializers/secret_token.rb
287
- - test/dummy-rails4/README.rdoc
288
- - test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
243
+ - test/dummy-rails4/config/initializers/session_store.rb
244
+ - test/dummy-rails4/config/initializers/user_impersonate.rb
245
+ - test/dummy-rails4/config/initializers/wrap_parameters.rb
246
+ - test/dummy-rails4/config/locales/devise.en.yml
247
+ - test/dummy-rails4/config/locales/en.yml
248
+ - test/dummy-rails4/config/routes.rb
249
+ - test/dummy-rails4/config.ru
289
250
  - test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb
251
+ - test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
290
252
  - test/dummy-rails4/db/schema.rb
291
- - test/dummy-rails4/db/test.sqlite3
292
- - test/dummy-rails4/log/test.log
293
253
  - test/dummy-rails4/lib/tasks/cucumber.rake
294
- - test/dummy-rails4/public/422.html
295
- - test/dummy-rails4/public/favicon.ico
296
254
  - test/dummy-rails4/public/404.html
255
+ - test/dummy-rails4/public/422.html
297
256
  - test/dummy-rails4/public/500.html
257
+ - test/dummy-rails4/public/favicon.ico
258
+ - test/dummy-rails4/Rakefile
259
+ - test/dummy-rails4/README.rdoc
260
+ - test/dummy-rails4/script/rails
298
261
  - test/dummy-rails4/test/fixtures/users.yml
299
262
  - test/dummy-rails4/test/unit/helpers/home_helper_test.rb
300
263
  - test/dummy-rails4/test/unit/user_test.rb
301
- - test/dummy-rails4/script/rails
302
- - test/dummy-rails4/Rakefile
303
- - test/dummy-rails4/config.ru
304
- - test/dummy-rails4/app/controllers/application_controller.rb
305
- - test/dummy-rails4/app/controllers/home_controller.rb
306
- - test/dummy-rails4/app/helpers/home_helper.rb
307
- - test/dummy-rails4/app/helpers/application_helper.rb
308
- - test/dummy-rails4/app/views/layouts/application.html.erb
309
- - test/dummy-rails4/app/views/user_impersonate/_header.html.erb
310
- - test/dummy-rails4/app/views/home/index.html.erb
311
- - test/dummy-rails4/app/models/user.rb
312
- - test/dummy-rails4/app/assets/stylesheets/home.css
313
- - test/dummy-rails4/app/assets/stylesheets/application.css
314
- - test/dummy-rails4/app/assets/javascripts/home.js
315
- - test/dummy-rails4/app/assets/javascripts/application.js
316
- - test/user_impersonate_test.rb
317
- - test/test_utils.rb
318
- - test/dummy-rails3/config/database.yml
319
- - test/dummy-rails3/config/routes.rb
320
- - test/dummy-rails3/config/boot.rb
321
- - test/dummy-rails3/config/environments/production.rb
322
- - test/dummy-rails3/config/environments/test.rb
323
- - test/dummy-rails3/config/environments/development.rb
324
- - test/dummy-rails3/config/environment.rb
325
- - test/dummy-rails3/config/application.rb
326
- - test/dummy-rails3/config/locales/devise.en.yml
327
- - test/dummy-rails3/config/locales/en.yml
328
- - test/dummy-rails3/config/initializers/mime_types.rb
329
- - test/dummy-rails3/config/initializers/wrap_parameters.rb
330
- - test/dummy-rails3/config/initializers/user_impersonate.rb
331
- - test/dummy-rails3/config/initializers/session_store.rb
332
- - test/dummy-rails3/config/initializers/devise.rb
333
- - test/dummy-rails3/config/initializers/backtrace_silencers.rb
334
- - test/dummy-rails3/config/initializers/secret_token.rb
335
- - test/dummy-rails3/README.rdoc
336
- - test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb
337
- - test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb
338
- - test/dummy-rails3/db/schema.rb
339
- - test/dummy-rails3/lib/tasks/cucumber.rake
340
- - test/dummy-rails3/public/422.html
341
- - test/dummy-rails3/public/favicon.ico
342
- - test/dummy-rails3/public/404.html
343
- - test/dummy-rails3/public/500.html
344
- - test/dummy-rails3/test/fixtures/users.yml
345
- - test/dummy-rails3/test/unit/helpers/home_helper_test.rb
346
- - test/dummy-rails3/test/unit/user_test.rb
347
- - test/dummy-rails3/script/rails
348
- - test/dummy-rails3/Rakefile
349
- - test/dummy-rails3/config.ru
350
- - test/dummy-rails3/app/controllers/application_controller.rb
351
- - test/dummy-rails3/app/controllers/home_controller.rb
352
- - test/dummy-rails3/app/helpers/home_helper.rb
353
- - test/dummy-rails3/app/helpers/application_helper.rb
354
- - test/dummy-rails3/app/views/layouts/application.html.erb
355
- - test/dummy-rails3/app/views/user_impersonate/_header.html.erb
356
- - test/dummy-rails3/app/views/home/index.html.erb
357
- - test/dummy-rails3/app/models/user.rb
358
- - test/dummy-rails3/app/assets/stylesheets/home.css
359
- - test/dummy-rails3/app/assets/stylesheets/application.css
360
- - test/dummy-rails3/app/assets/javascripts/home.js
361
- - test/dummy-rails3/app/assets/javascripts/application.js
362
264
  - test/functional/impersonate_controller_test.rb
265
+ - test/integration/navigation_test.rb
266
+ - test/test_helper.rb
267
+ - test/test_utils.rb
268
+ - test/unit/helpers/user_impersonate/devise_helpers_test.rb
269
+ - test/unit/helpers/user_impersonate/impersonate_helper_test.rb
270
+ - test/user_impersonate_test.rb