user_impersonate2 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/app/helpers/user_impersonate/application_helper.rb +8 -2
  2. data/lib/user_impersonate/devise_helpers.rb +8 -2
  3. data/lib/user_impersonate/version.rb +1 -1
  4. data/test/functional/impersonate_controller_test.rb +50 -0
  5. data/test/unit/helpers/user_impersonate/devise_helpers_test.rb +60 -0
  6. metadata +213 -267
  7. checksums.yaml +0 -7
  8. data/test/dummy-rails3/db/development.sqlite3 +0 -0
  9. data/test/dummy-rails3/db/test.sqlite3 +0 -0
  10. data/test/dummy-rails3/log/development.log +0 -432
  11. data/test/dummy-rails3/log/test.log +0 -3181
  12. data/test/dummy-rails4/db/development.sqlite3 +0 -0
  13. data/test/dummy-rails4/db/test.sqlite3 +0 -0
  14. data/test/dummy-rails4/log/development.log +0 -45
  15. data/test/dummy-rails4/log/test.log +0 -2053
  16. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  17. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c +0 -0
  18. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2625847957ecb8614efc9b58b07cabdf +0 -0
  19. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/291faed72d20664326ce265eb8e1ed2f +0 -0
  20. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  21. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  22. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/35f33ae400a6b0b5bf527436a68133b5 +0 -0
  23. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/3b83d2c20dfdb631259eb9d056ea4419 +0 -0
  24. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/40fc2f3d2a468a00e463f1d313cb1683 +0 -0
  25. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/5f1c168e97e274509aa4673eab0d86f6 +0 -0
  26. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/681d1010f98d5ed273e67645c7cb454d +0 -0
  27. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7411b44628aea038332f13f5ed73e073 +0 -0
  28. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/79203f7770f5d8956dee4606e93f3d65 +0 -0
  29. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7f14251885cab31b58c878119cbdc199 +0 -0
  30. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8473d4c341d1accbf02a0c2d8270c68e +0 -0
  31. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8483b329d12e7e986bc5a2204bbcb4f8 +0 -0
  32. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8ff157af159f38d424ce1367e29760a2 +0 -0
  33. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/a51c3d05425a76a50181d8144764ac8f +0 -0
  34. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b6f020b01a84691088a0c459a18f9c7e +0 -0
  35. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e +0 -0
  36. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/bdaaf186999b6b59a3063d23b589d307 +0 -0
  37. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  38. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d0cde4ef34755468270bb49c4a3689f1 +0 -0
  39. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  40. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/edbef6e0d0a4742346cf479f2c522eb0 +0 -0
  41. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f1aac9109f5dae028b3c56eb07311208 +0 -0
  42. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  43. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/fd6c8e27b44aa2db77bf0a8b5118bdf8 +0 -0
@@ -2,10 +2,16 @@ module UserImpersonate
2
2
  module ApplicationHelper
3
3
  def current_staff_user
4
4
  return unless session[:staff_user_id]
5
- staff_finder_method = (UserImpersonate::Engine.config.staff_finder || "find").to_sym
6
- staff_class_name = UserImpersonate::Engine.config.staff_class || "User"
5
+ staff_finder_method = config_value(UserImpersonate::Engine.config, :staff_finder, 'find').to_sym
6
+ staff_class_name = config_value(UserImpersonate::Engine.config, :staff_class, 'User')
7
7
  staff_class = staff_class_name.constantize
8
8
  @staff_user ||= staff_class.send(staff_finder_method, session[:staff_user_id])
9
9
  end
10
+
11
+ private
12
+
13
+ def config_value(config, sym, default)
14
+ config.respond_to?(sym) ? (config.send(sym) || default) : default
15
+ end
10
16
  end
11
17
  end
@@ -21,11 +21,17 @@ module UserImpersonate
21
21
  module UrlHelpers
22
22
  def current_staff_user
23
23
  return unless session[:staff_user_id]
24
- user_finder_method = (UserImpersonate::Engine.config.user_finder || "find").to_sym
25
- user_class_name = UserImpersonate::Engine.config.user_class || "User"
24
+ user_finder_method = config_value(UserImpersonate::Engine.config, :user_finder, 'find').to_sym
25
+ user_class_name = config_value(UserImpersonate::Engine.config, :user_class, 'User')
26
26
  user_class = user_class_name.constantize
27
27
  @staff_user ||= user_class.send(user_finder_method, session[:staff_user_id])
28
28
  end
29
+
30
+ private
31
+
32
+ def config_value(config, sym, default)
33
+ config.respond_to?(sym) ? (config.send(sym) || default) : default
34
+ end
29
35
  end
30
36
  end
31
37
  end
@@ -1,4 +1,4 @@
1
1
  module UserImpersonate
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
4
4
 
@@ -61,5 +61,55 @@ class UserImpersonate::ImpersonateControllerTest < ActionController::TestCase
61
61
  assert_redirected_to 'http://test.host/'
62
62
  assert_equal admin_user, assigns(:current_staff)
63
63
  end
64
+
65
+ # https://github.com/rcook/user_impersonate2/issues/3
66
+ # If config.staff_finder is not specified, default of "find" should be used.
67
+ # Similarly, config.staff_class should default to "User".
68
+ test 'staff_finder not specified' do
69
+ options = UserImpersonate::Engine.config.class.class_variable_get('@@options')
70
+ options.delete(:staff_class)
71
+ options.delete(:staff_finder)
72
+ user = User.create!(:email => 'test@example.com', :password => 'password')
73
+ session[:staff_user_id] = user.id
74
+ staff_user = @controller.view_context.current_staff_user
75
+ assert_equal user, staff_user
76
+ end
77
+
78
+ # https://github.com/rcook/user_impersonate2/issues/3
79
+ # If config.staff_finder is nil, default of "find" should be used.
80
+ # Similarly, config.staff_class should default to "User".
81
+ test 'staff_finder nil' do
82
+ options = UserImpersonate::Engine.config.class.class_variable_get('@@options')
83
+ options[:staff_class] = nil
84
+ options[:staff_finder] = nil
85
+ user = User.create!(:email => 'test@example.com', :password => 'password')
86
+ session[:staff_user_id] = user.id
87
+ staff_user = @controller.view_context.current_staff_user
88
+ assert_equal user, staff_user
89
+ end
90
+
91
+ # https://github.com/rcook/user_impersonate2/issues/3
92
+ # If config.staff_finder is specified, the given method should be called.
93
+ test 'staff_finder other' do
94
+ options = UserImpersonate::Engine.config.class.class_variable_get('@@options')
95
+ options[:staff_finder] = :other
96
+ user = User.create!(:email => 'test@example.com', :password => 'password')
97
+ session[:staff_user_id] = user.id
98
+ assert_raises NoMethodError do
99
+ @controller.view_context.current_staff_user
100
+ end
101
+ end
102
+
103
+ # https://github.com/rcook/user_impersonate2/issues/3
104
+ # If config.staff_class is specified, the given model should be used.
105
+ test 'staff_class other' do
106
+ options = UserImpersonate::Engine.config.class.class_variable_get('@@options')
107
+ options[:staff_class] = 'SomeUser'
108
+ user = User.create!(:email => 'test@example.com', :password => 'password')
109
+ session[:staff_user_id] = user.id
110
+ assert_raises NameError do
111
+ @controller.view_context.current_staff_user
112
+ end
113
+ end
64
114
  end
65
115
 
@@ -0,0 +1,60 @@
1
+ require 'test_helper'
2
+
3
+ class UserImpersonate::DeviseHelpersTest < ActionController::TestCase
4
+ class TestClass
5
+ attr_reader :session
6
+
7
+ def initialize(session)
8
+ @session = session
9
+ end
10
+
11
+ include UserImpersonate::DeviseHelpers::UrlHelpers
12
+ end
13
+
14
+ # https://github.com/rcook/user_impersonate2/issues/3
15
+ # If config.user_finder is not specified, default of "find" should be used.
16
+ # Similarly, config.user_class should default to "User".
17
+ test 'user_finder not specified' do
18
+ options = UserImpersonate::Engine.config.class.class_variable_get('@@options')
19
+ options.delete(:user_class)
20
+ options.delete(:user_finder)
21
+ user = User.create!(:email => 'test@example.com', :password => 'password')
22
+ staff_user = TestClass.new(:staff_user_id => user.id).current_staff_user
23
+ assert_equal user, staff_user
24
+ end
25
+
26
+ # https://github.com/rcook/user_impersonate2/issues/3
27
+ # If config.user_finder is nil, default of "find" should be used.
28
+ # Similarly, config.user_class should default to "User".
29
+ test 'user_finder nil' do
30
+ options = UserImpersonate::Engine.config.class.class_variable_get('@@options')
31
+ options[:user_class] = nil
32
+ options[:user_finder] = nil
33
+ user = User.create!(:email => 'test@example.com', :password => 'password')
34
+ staff_user = TestClass.new(:staff_user_id => user.id).current_staff_user
35
+ assert_equal user, staff_user
36
+ end
37
+
38
+ # https://github.com/rcook/user_impersonate2/issues/3
39
+ # If config.user_finder is specified, the given method should be called.
40
+ test 'user_finder other' do
41
+ options = UserImpersonate::Engine.config.class.class_variable_get('@@options')
42
+ options[:user_finder] = :other
43
+ user = User.create!(:email => 'test@example.com', :password => 'password')
44
+ assert_raises NoMethodError do
45
+ TestClass.new(:staff_user_id => user.id).current_staff_user
46
+ end
47
+ end
48
+
49
+ # https://github.com/rcook/user_impersonate2/issues/3
50
+ # If config.user_class is specified, the given model should be used.
51
+ test 'user_class other' do
52
+ options = UserImpersonate::Engine.config.class.class_variable_get('@@options')
53
+ options[:user_class] = 'SomeUser'
54
+ user = User.create!(:email => 'test@example.com', :password => 'password')
55
+ assert_raises NameError do
56
+ TestClass.new(:staff_user_id => user.id).current_staff_user
57
+ end
58
+ end
59
+ end
60
+
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_impersonate2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Richard Cook
@@ -10,104 +11,118 @@ authors:
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2014-04-09 00:00:00.000000000 Z
14
+ date: 2014-04-28 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: rails
17
18
  requirement: !ruby/object:Gem::Requirement
19
+ none: false
18
20
  requirements:
19
- - - '>='
21
+ - - ! '>='
20
22
  - !ruby/object:Gem::Version
21
23
  version: 3.2.0
22
24
  type: :runtime
23
25
  prerelease: false
24
26
  version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
25
28
  requirements:
26
- - - '>='
29
+ - - ! '>='
27
30
  - !ruby/object:Gem::Version
28
31
  version: 3.2.0
29
32
  - !ruby/object:Gem::Dependency
30
33
  name: sqlite3
31
34
  requirement: !ruby/object:Gem::Requirement
35
+ none: false
32
36
  requirements:
33
- - - '>='
37
+ - - ! '>='
34
38
  - !ruby/object:Gem::Version
35
39
  version: '0'
36
40
  type: :development
37
41
  prerelease: false
38
42
  version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
39
44
  requirements:
40
- - - '>='
45
+ - - ! '>='
41
46
  - !ruby/object:Gem::Version
42
47
  version: '0'
43
48
  - !ruby/object:Gem::Dependency
44
49
  name: cucumber-rails
45
50
  requirement: !ruby/object:Gem::Requirement
51
+ none: false
46
52
  requirements:
47
- - - '>='
53
+ - - ! '>='
48
54
  - !ruby/object:Gem::Version
49
55
  version: '0'
50
56
  type: :development
51
57
  prerelease: false
52
58
  version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
53
60
  requirements:
54
- - - '>='
61
+ - - ! '>='
55
62
  - !ruby/object:Gem::Version
56
63
  version: '0'
57
64
  - !ruby/object:Gem::Dependency
58
65
  name: database_cleaner
59
66
  requirement: !ruby/object:Gem::Requirement
67
+ none: false
60
68
  requirements:
61
- - - '>='
69
+ - - ! '>='
62
70
  - !ruby/object:Gem::Version
63
71
  version: '0'
64
72
  type: :development
65
73
  prerelease: false
66
74
  version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
67
76
  requirements:
68
- - - '>='
77
+ - - ! '>='
69
78
  - !ruby/object:Gem::Version
70
79
  version: '0'
71
80
  - !ruby/object:Gem::Dependency
72
81
  name: guard
73
82
  requirement: !ruby/object:Gem::Requirement
83
+ none: false
74
84
  requirements:
75
- - - '>='
85
+ - - ! '>='
76
86
  - !ruby/object:Gem::Version
77
87
  version: '0'
78
88
  type: :development
79
89
  prerelease: false
80
90
  version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
81
92
  requirements:
82
- - - '>='
93
+ - - ! '>='
83
94
  - !ruby/object:Gem::Version
84
95
  version: '0'
85
96
  - !ruby/object:Gem::Dependency
86
97
  name: guard-cucumber
87
98
  requirement: !ruby/object:Gem::Requirement
99
+ none: false
88
100
  requirements:
89
- - - '>='
101
+ - - ! '>='
90
102
  - !ruby/object:Gem::Version
91
103
  version: '0'
92
104
  type: :development
93
105
  prerelease: false
94
106
  version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
95
108
  requirements:
96
- - - '>='
109
+ - - ! '>='
97
110
  - !ruby/object:Gem::Version
98
111
  version: '0'
99
112
  - !ruby/object:Gem::Dependency
100
113
  name: launchy
101
114
  requirement: !ruby/object:Gem::Requirement
115
+ none: false
102
116
  requirements:
103
- - - '>='
117
+ - - ! '>='
104
118
  - !ruby/object:Gem::Version
105
119
  version: '0'
106
120
  type: :development
107
121
  prerelease: false
108
122
  version_requirements: !ruby/object:Gem::Requirement
123
+ none: false
109
124
  requirements:
110
- - - '>='
125
+ - - ! '>='
111
126
  - !ruby/object:Gem::Version
112
127
  version: '0'
113
128
  description: Allow staff users to pretend to be your customers; to impersonate their
@@ -117,312 +132,243 @@ executables: []
117
132
  extensions: []
118
133
  extra_rdoc_files: []
119
134
  files:
120
- - app/controllers/user_impersonate/application_controller.rb
121
- - app/controllers/user_impersonate/impersonate_controller.rb
122
135
  - app/assets/javascripts/user_impersonate/application.js
123
136
  - app/assets/javascripts/user_impersonate/impersonate.js
124
- - app/assets/stylesheets/user_impersonate/impersonate.css
125
137
  - app/assets/stylesheets/user_impersonate/application.css
126
- - app/helpers/user_impersonate/application_helper.rb
127
- - app/views/layouts/user_impersonate/application.html.erb
128
- - app/views/user_impersonate/_header.html.erb
138
+ - app/assets/stylesheets/user_impersonate/impersonate.css
129
139
  - app/views/user_impersonate/impersonate/index.html.erb
130
- - config/cucumber.yml
140
+ - app/views/user_impersonate/_header.html.erb
141
+ - app/views/layouts/user_impersonate/application.html.erb
142
+ - app/controllers/user_impersonate/application_controller.rb
143
+ - app/controllers/user_impersonate/impersonate_controller.rb
144
+ - app/helpers/user_impersonate/application_helper.rb
131
145
  - config/routes.rb
146
+ - config/cucumber.yml
132
147
  - lib/user_impersonate.rb
148
+ - lib/tasks/user_impersonate_tasks.rake
149
+ - lib/user_impersonate/devise_helpers.rb
150
+ - lib/user_impersonate/version.rb
151
+ - lib/user_impersonate/engine.rb
133
152
  - lib/generators/user_impersonate/user_impersonate_generator.rb
134
- - lib/generators/user_impersonate/templates/config/initializers/user_impersonate.rb
135
153
  - lib/generators/user_impersonate/templates/app/views/user_impersonate/_header.html.erb
154
+ - lib/generators/user_impersonate/templates/config/initializers/user_impersonate.rb
136
155
  - lib/generators/user_impersonate/USAGE
137
- - lib/user_impersonate/devise_helpers.rb
138
- - lib/user_impersonate/engine.rb
139
- - lib/user_impersonate/version.rb
140
- - lib/tasks/user_impersonate_tasks.rake
141
156
  - MIT-LICENSE
142
157
  - Rakefile
143
158
  - README.md
144
- - test/test_helper.rb
145
- - test/functional/impersonate_controller_test.rb
159
+ - test/dummy-rails4/config.ru
160
+ - test/dummy-rails4/test/unit/user_test.rb
161
+ - test/dummy-rails4/test/unit/helpers/home_helper_test.rb
162
+ - test/dummy-rails4/test/fixtures/users.yml
163
+ - test/dummy-rails4/app/assets/javascripts/application.js
164
+ - test/dummy-rails4/app/assets/javascripts/home.js
165
+ - test/dummy-rails4/app/assets/stylesheets/home.css
166
+ - test/dummy-rails4/app/assets/stylesheets/application.css
167
+ - test/dummy-rails4/app/views/home/index.html.erb
168
+ - test/dummy-rails4/app/views/user_impersonate/_header.html.erb
169
+ - test/dummy-rails4/app/views/layouts/application.html.erb
170
+ - test/dummy-rails4/app/controllers/home_controller.rb
171
+ - test/dummy-rails4/app/controllers/application_controller.rb
172
+ - test/dummy-rails4/app/helpers/application_helper.rb
173
+ - test/dummy-rails4/app/helpers/home_helper.rb
174
+ - test/dummy-rails4/app/models/user.rb
175
+ - test/dummy-rails4/script/rails
176
+ - test/dummy-rails4/config/database.yml
177
+ - test/dummy-rails4/config/initializers/mime_types.rb
178
+ - test/dummy-rails4/config/initializers/devise.rb
179
+ - test/dummy-rails4/config/initializers/user_impersonate.rb
180
+ - test/dummy-rails4/config/initializers/secret_token.rb
181
+ - test/dummy-rails4/config/initializers/session_store.rb
182
+ - test/dummy-rails4/config/initializers/backtrace_silencers.rb
183
+ - test/dummy-rails4/config/initializers/wrap_parameters.rb
184
+ - test/dummy-rails4/config/routes.rb
185
+ - test/dummy-rails4/config/application.rb
186
+ - test/dummy-rails4/config/locales/en.yml
187
+ - test/dummy-rails4/config/locales/devise.en.yml
188
+ - test/dummy-rails4/config/environments/development.rb
189
+ - test/dummy-rails4/config/environments/production.rb
190
+ - test/dummy-rails4/config/environments/test.rb
191
+ - test/dummy-rails4/config/boot.rb
192
+ - test/dummy-rails4/config/environment.rb
193
+ - test/dummy-rails4/Rakefile
194
+ - test/dummy-rails4/README.rdoc
195
+ - test/dummy-rails4/lib/tasks/cucumber.rake
196
+ - test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb
197
+ - test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
198
+ - test/dummy-rails4/db/schema.rb
199
+ - test/dummy-rails4/public/422.html
200
+ - test/dummy-rails4/public/favicon.ico
201
+ - test/dummy-rails4/public/404.html
202
+ - test/dummy-rails4/public/500.html
203
+ - test/test_utils.rb
204
+ - test/unit/helpers/user_impersonate/devise_helpers_test.rb
146
205
  - test/unit/helpers/user_impersonate/impersonate_helper_test.rb
147
- - test/dummy-rails3/config/boot.rb
148
- - test/dummy-rails3/config/locales/en.yml
149
- - test/dummy-rails3/config/locales/devise.en.yml
206
+ - test/integration/navigation_test.rb
207
+ - test/test_helper.rb
208
+ - test/dummy-rails3/config.ru
209
+ - test/dummy-rails3/test/unit/user_test.rb
210
+ - test/dummy-rails3/test/unit/helpers/home_helper_test.rb
211
+ - test/dummy-rails3/test/fixtures/users.yml
212
+ - test/dummy-rails3/app/assets/javascripts/application.js
213
+ - test/dummy-rails3/app/assets/javascripts/home.js
214
+ - test/dummy-rails3/app/assets/stylesheets/home.css
215
+ - test/dummy-rails3/app/assets/stylesheets/application.css
216
+ - test/dummy-rails3/app/views/home/index.html.erb
217
+ - test/dummy-rails3/app/views/user_impersonate/_header.html.erb
218
+ - test/dummy-rails3/app/views/layouts/application.html.erb
219
+ - test/dummy-rails3/app/controllers/home_controller.rb
220
+ - test/dummy-rails3/app/controllers/application_controller.rb
221
+ - test/dummy-rails3/app/helpers/application_helper.rb
222
+ - test/dummy-rails3/app/helpers/home_helper.rb
223
+ - test/dummy-rails3/app/models/user.rb
224
+ - test/dummy-rails3/script/rails
150
225
  - test/dummy-rails3/config/database.yml
151
226
  - test/dummy-rails3/config/initializers/mime_types.rb
152
- - test/dummy-rails3/config/initializers/wrap_parameters.rb
153
- - test/dummy-rails3/config/initializers/session_store.rb
227
+ - test/dummy-rails3/config/initializers/devise.rb
154
228
  - test/dummy-rails3/config/initializers/user_impersonate.rb
155
229
  - test/dummy-rails3/config/initializers/secret_token.rb
230
+ - test/dummy-rails3/config/initializers/session_store.rb
156
231
  - test/dummy-rails3/config/initializers/backtrace_silencers.rb
157
- - test/dummy-rails3/config/initializers/devise.rb
232
+ - test/dummy-rails3/config/initializers/wrap_parameters.rb
233
+ - test/dummy-rails3/config/routes.rb
158
234
  - test/dummy-rails3/config/application.rb
159
- - test/dummy-rails3/config/environment.rb
235
+ - test/dummy-rails3/config/locales/en.yml
236
+ - test/dummy-rails3/config/locales/devise.en.yml
237
+ - test/dummy-rails3/config/environments/development.rb
160
238
  - test/dummy-rails3/config/environments/production.rb
161
239
  - test/dummy-rails3/config/environments/test.rb
162
- - test/dummy-rails3/config/environments/development.rb
163
- - test/dummy-rails3/config/routes.rb
164
- - test/dummy-rails3/public/500.html
240
+ - test/dummy-rails3/config/boot.rb
241
+ - test/dummy-rails3/config/environment.rb
242
+ - test/dummy-rails3/Rakefile
243
+ - test/dummy-rails3/README.rdoc
244
+ - test/dummy-rails3/lib/tasks/cucumber.rake
245
+ - test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb
246
+ - test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb
247
+ - test/dummy-rails3/db/schema.rb
165
248
  - test/dummy-rails3/public/422.html
166
249
  - test/dummy-rails3/public/favicon.ico
167
250
  - test/dummy-rails3/public/404.html
168
- - test/dummy-rails3/app/controllers/application_controller.rb
169
- - test/dummy-rails3/app/controllers/home_controller.rb
170
- - test/dummy-rails3/app/assets/javascripts/application.js
171
- - test/dummy-rails3/app/assets/javascripts/home.js
172
- - test/dummy-rails3/app/assets/stylesheets/home.css
173
- - test/dummy-rails3/app/assets/stylesheets/application.css
174
- - test/dummy-rails3/app/models/user.rb
175
- - test/dummy-rails3/app/helpers/home_helper.rb
176
- - test/dummy-rails3/app/helpers/application_helper.rb
177
- - test/dummy-rails3/app/views/layouts/application.html.erb
178
- - test/dummy-rails3/app/views/user_impersonate/_header.html.erb
179
- - test/dummy-rails3/app/views/home/index.html.erb
180
- - test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb
181
- - test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb
182
- - test/dummy-rails3/db/schema.rb
183
- - test/dummy-rails3/db/test.sqlite3
184
- - test/dummy-rails3/db/development.sqlite3
185
- - test/dummy-rails3/log/test.log
186
- - test/dummy-rails3/log/development.log
187
- - test/dummy-rails3/config.ru
188
- - test/dummy-rails3/lib/tasks/cucumber.rake
189
- - test/dummy-rails3/Rakefile
190
- - test/dummy-rails3/README.rdoc
191
- - test/dummy-rails3/test/fixtures/users.yml
192
- - test/dummy-rails3/test/unit/user_test.rb
193
- - test/dummy-rails3/test/unit/helpers/home_helper_test.rb
194
- - test/dummy-rails3/script/rails
251
+ - test/dummy-rails3/public/500.html
195
252
  - test/user_impersonate_test.rb
196
- - test/test_utils.rb
197
- - test/integration/navigation_test.rb
198
- - test/dummy-rails4/config/boot.rb
199
- - test/dummy-rails4/config/locales/en.yml
200
- - test/dummy-rails4/config/locales/devise.en.yml
201
- - test/dummy-rails4/config/database.yml
202
- - test/dummy-rails4/config/initializers/mime_types.rb
203
- - test/dummy-rails4/config/initializers/wrap_parameters.rb
204
- - test/dummy-rails4/config/initializers/session_store.rb
205
- - test/dummy-rails4/config/initializers/user_impersonate.rb
206
- - test/dummy-rails4/config/initializers/secret_token.rb
207
- - test/dummy-rails4/config/initializers/backtrace_silencers.rb
208
- - test/dummy-rails4/config/initializers/devise.rb
209
- - test/dummy-rails4/config/application.rb
210
- - test/dummy-rails4/config/environment.rb
211
- - test/dummy-rails4/config/environments/production.rb
212
- - test/dummy-rails4/config/environments/test.rb
213
- - test/dummy-rails4/config/environments/development.rb
214
- - test/dummy-rails4/config/routes.rb
215
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/7411b44628aea038332f13f5ed73e073
216
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/2625847957ecb8614efc9b58b07cabdf
217
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
218
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
219
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/40fc2f3d2a468a00e463f1d313cb1683
220
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/681d1010f98d5ed273e67645c7cb454d
221
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/35f33ae400a6b0b5bf527436a68133b5
222
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/a51c3d05425a76a50181d8144764ac8f
223
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
224
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/edbef6e0d0a4742346cf479f2c522eb0
225
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/d0cde4ef34755468270bb49c4a3689f1
226
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/fd6c8e27b44aa2db77bf0a8b5118bdf8
227
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/3b83d2c20dfdb631259eb9d056ea4419
228
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/8483b329d12e7e986bc5a2204bbcb4f8
229
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c
230
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
231
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/bdaaf186999b6b59a3063d23b589d307
232
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
233
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/f1aac9109f5dae028b3c56eb07311208
234
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/79203f7770f5d8956dee4606e93f3d65
235
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
236
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/291faed72d20664326ce265eb8e1ed2f
237
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/b6f020b01a84691088a0c459a18f9c7e
238
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/5f1c168e97e274509aa4673eab0d86f6
239
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e
240
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/7f14251885cab31b58c878119cbdc199
241
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/8473d4c341d1accbf02a0c2d8270c68e
242
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/8ff157af159f38d424ce1367e29760a2
243
- - test/dummy-rails4/public/500.html
244
- - test/dummy-rails4/public/422.html
245
- - test/dummy-rails4/public/favicon.ico
246
- - test/dummy-rails4/public/404.html
247
- - test/dummy-rails4/app/controllers/application_controller.rb
248
- - test/dummy-rails4/app/controllers/home_controller.rb
249
- - test/dummy-rails4/app/assets/javascripts/application.js
250
- - test/dummy-rails4/app/assets/javascripts/home.js
251
- - test/dummy-rails4/app/assets/stylesheets/home.css
252
- - test/dummy-rails4/app/assets/stylesheets/application.css
253
- - test/dummy-rails4/app/models/user.rb
254
- - test/dummy-rails4/app/helpers/home_helper.rb
255
- - test/dummy-rails4/app/helpers/application_helper.rb
256
- - test/dummy-rails4/app/views/layouts/application.html.erb
257
- - test/dummy-rails4/app/views/user_impersonate/_header.html.erb
258
- - test/dummy-rails4/app/views/home/index.html.erb
259
- - test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
260
- - test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb
261
- - test/dummy-rails4/db/schema.rb
262
- - test/dummy-rails4/db/test.sqlite3
263
- - test/dummy-rails4/db/development.sqlite3
264
- - test/dummy-rails4/log/test.log
265
- - test/dummy-rails4/log/development.log
266
- - test/dummy-rails4/config.ru
267
- - test/dummy-rails4/lib/tasks/cucumber.rake
268
- - test/dummy-rails4/Rakefile
269
- - test/dummy-rails4/README.rdoc
270
- - test/dummy-rails4/test/fixtures/users.yml
271
- - test/dummy-rails4/test/unit/user_test.rb
272
- - test/dummy-rails4/test/unit/helpers/home_helper_test.rb
273
- - test/dummy-rails4/script/rails
253
+ - test/functional/impersonate_controller_test.rb
274
254
  homepage: https://github.com/rcook/user_impersonate2
275
255
  licenses:
276
256
  - MIT
277
- metadata: {}
278
257
  post_install_message:
279
258
  rdoc_options: []
280
259
  require_paths:
281
260
  - lib
282
261
  required_ruby_version: !ruby/object:Gem::Requirement
262
+ none: false
283
263
  requirements:
284
- - - '>='
264
+ - - ! '>='
285
265
  - !ruby/object:Gem::Version
286
266
  version: '0'
287
267
  required_rubygems_version: !ruby/object:Gem::Requirement
268
+ none: false
288
269
  requirements:
289
- - - '>='
270
+ - - ! '>='
290
271
  - !ruby/object:Gem::Version
291
272
  version: '0'
292
273
  requirements: []
293
274
  rubyforge_project:
294
- rubygems_version: 2.0.14
275
+ rubygems_version: 1.8.23
295
276
  signing_key:
296
- specification_version: 4
277
+ specification_version: 3
297
278
  summary: Allow staff users to pretend to be your customers
298
279
  test_files:
299
- - test/test_helper.rb
300
- - test/functional/impersonate_controller_test.rb
280
+ - test/dummy-rails4/config.ru
281
+ - test/dummy-rails4/test/unit/user_test.rb
282
+ - test/dummy-rails4/test/unit/helpers/home_helper_test.rb
283
+ - test/dummy-rails4/test/fixtures/users.yml
284
+ - test/dummy-rails4/app/assets/javascripts/application.js
285
+ - test/dummy-rails4/app/assets/javascripts/home.js
286
+ - test/dummy-rails4/app/assets/stylesheets/home.css
287
+ - test/dummy-rails4/app/assets/stylesheets/application.css
288
+ - test/dummy-rails4/app/views/home/index.html.erb
289
+ - test/dummy-rails4/app/views/user_impersonate/_header.html.erb
290
+ - test/dummy-rails4/app/views/layouts/application.html.erb
291
+ - test/dummy-rails4/app/controllers/home_controller.rb
292
+ - test/dummy-rails4/app/controllers/application_controller.rb
293
+ - test/dummy-rails4/app/helpers/application_helper.rb
294
+ - test/dummy-rails4/app/helpers/home_helper.rb
295
+ - test/dummy-rails4/app/models/user.rb
296
+ - test/dummy-rails4/script/rails
297
+ - test/dummy-rails4/config/database.yml
298
+ - test/dummy-rails4/config/initializers/mime_types.rb
299
+ - test/dummy-rails4/config/initializers/devise.rb
300
+ - test/dummy-rails4/config/initializers/user_impersonate.rb
301
+ - test/dummy-rails4/config/initializers/secret_token.rb
302
+ - test/dummy-rails4/config/initializers/session_store.rb
303
+ - test/dummy-rails4/config/initializers/backtrace_silencers.rb
304
+ - test/dummy-rails4/config/initializers/wrap_parameters.rb
305
+ - test/dummy-rails4/config/routes.rb
306
+ - test/dummy-rails4/config/application.rb
307
+ - test/dummy-rails4/config/locales/en.yml
308
+ - test/dummy-rails4/config/locales/devise.en.yml
309
+ - test/dummy-rails4/config/environments/development.rb
310
+ - test/dummy-rails4/config/environments/production.rb
311
+ - test/dummy-rails4/config/environments/test.rb
312
+ - test/dummy-rails4/config/boot.rb
313
+ - test/dummy-rails4/config/environment.rb
314
+ - test/dummy-rails4/Rakefile
315
+ - test/dummy-rails4/README.rdoc
316
+ - test/dummy-rails4/lib/tasks/cucumber.rake
317
+ - test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb
318
+ - test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
319
+ - test/dummy-rails4/db/schema.rb
320
+ - test/dummy-rails4/public/422.html
321
+ - test/dummy-rails4/public/favicon.ico
322
+ - test/dummy-rails4/public/404.html
323
+ - test/dummy-rails4/public/500.html
324
+ - test/test_utils.rb
325
+ - test/unit/helpers/user_impersonate/devise_helpers_test.rb
301
326
  - test/unit/helpers/user_impersonate/impersonate_helper_test.rb
302
- - test/dummy-rails3/config/boot.rb
303
- - test/dummy-rails3/config/locales/en.yml
304
- - test/dummy-rails3/config/locales/devise.en.yml
327
+ - test/integration/navigation_test.rb
328
+ - test/test_helper.rb
329
+ - test/dummy-rails3/config.ru
330
+ - test/dummy-rails3/test/unit/user_test.rb
331
+ - test/dummy-rails3/test/unit/helpers/home_helper_test.rb
332
+ - test/dummy-rails3/test/fixtures/users.yml
333
+ - test/dummy-rails3/app/assets/javascripts/application.js
334
+ - test/dummy-rails3/app/assets/javascripts/home.js
335
+ - test/dummy-rails3/app/assets/stylesheets/home.css
336
+ - test/dummy-rails3/app/assets/stylesheets/application.css
337
+ - test/dummy-rails3/app/views/home/index.html.erb
338
+ - test/dummy-rails3/app/views/user_impersonate/_header.html.erb
339
+ - test/dummy-rails3/app/views/layouts/application.html.erb
340
+ - test/dummy-rails3/app/controllers/home_controller.rb
341
+ - test/dummy-rails3/app/controllers/application_controller.rb
342
+ - test/dummy-rails3/app/helpers/application_helper.rb
343
+ - test/dummy-rails3/app/helpers/home_helper.rb
344
+ - test/dummy-rails3/app/models/user.rb
345
+ - test/dummy-rails3/script/rails
305
346
  - test/dummy-rails3/config/database.yml
306
347
  - test/dummy-rails3/config/initializers/mime_types.rb
307
- - test/dummy-rails3/config/initializers/wrap_parameters.rb
308
- - test/dummy-rails3/config/initializers/session_store.rb
348
+ - test/dummy-rails3/config/initializers/devise.rb
309
349
  - test/dummy-rails3/config/initializers/user_impersonate.rb
310
350
  - test/dummy-rails3/config/initializers/secret_token.rb
351
+ - test/dummy-rails3/config/initializers/session_store.rb
311
352
  - test/dummy-rails3/config/initializers/backtrace_silencers.rb
312
- - test/dummy-rails3/config/initializers/devise.rb
353
+ - test/dummy-rails3/config/initializers/wrap_parameters.rb
354
+ - test/dummy-rails3/config/routes.rb
313
355
  - test/dummy-rails3/config/application.rb
314
- - test/dummy-rails3/config/environment.rb
356
+ - test/dummy-rails3/config/locales/en.yml
357
+ - test/dummy-rails3/config/locales/devise.en.yml
358
+ - test/dummy-rails3/config/environments/development.rb
315
359
  - test/dummy-rails3/config/environments/production.rb
316
360
  - test/dummy-rails3/config/environments/test.rb
317
- - test/dummy-rails3/config/environments/development.rb
318
- - test/dummy-rails3/config/routes.rb
319
- - test/dummy-rails3/public/500.html
361
+ - test/dummy-rails3/config/boot.rb
362
+ - test/dummy-rails3/config/environment.rb
363
+ - test/dummy-rails3/Rakefile
364
+ - test/dummy-rails3/README.rdoc
365
+ - test/dummy-rails3/lib/tasks/cucumber.rake
366
+ - test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb
367
+ - test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb
368
+ - test/dummy-rails3/db/schema.rb
320
369
  - test/dummy-rails3/public/422.html
321
370
  - test/dummy-rails3/public/favicon.ico
322
371
  - test/dummy-rails3/public/404.html
323
- - test/dummy-rails3/app/controllers/application_controller.rb
324
- - test/dummy-rails3/app/controllers/home_controller.rb
325
- - test/dummy-rails3/app/assets/javascripts/application.js
326
- - test/dummy-rails3/app/assets/javascripts/home.js
327
- - test/dummy-rails3/app/assets/stylesheets/home.css
328
- - test/dummy-rails3/app/assets/stylesheets/application.css
329
- - test/dummy-rails3/app/models/user.rb
330
- - test/dummy-rails3/app/helpers/home_helper.rb
331
- - test/dummy-rails3/app/helpers/application_helper.rb
332
- - test/dummy-rails3/app/views/layouts/application.html.erb
333
- - test/dummy-rails3/app/views/user_impersonate/_header.html.erb
334
- - test/dummy-rails3/app/views/home/index.html.erb
335
- - test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb
336
- - test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb
337
- - test/dummy-rails3/db/schema.rb
338
- - test/dummy-rails3/db/test.sqlite3
339
- - test/dummy-rails3/db/development.sqlite3
340
- - test/dummy-rails3/log/test.log
341
- - test/dummy-rails3/log/development.log
342
- - test/dummy-rails3/config.ru
343
- - test/dummy-rails3/lib/tasks/cucumber.rake
344
- - test/dummy-rails3/Rakefile
345
- - test/dummy-rails3/README.rdoc
346
- - test/dummy-rails3/test/fixtures/users.yml
347
- - test/dummy-rails3/test/unit/user_test.rb
348
- - test/dummy-rails3/test/unit/helpers/home_helper_test.rb
349
- - test/dummy-rails3/script/rails
372
+ - test/dummy-rails3/public/500.html
350
373
  - test/user_impersonate_test.rb
351
- - test/test_utils.rb
352
- - test/integration/navigation_test.rb
353
- - test/dummy-rails4/config/boot.rb
354
- - test/dummy-rails4/config/locales/en.yml
355
- - test/dummy-rails4/config/locales/devise.en.yml
356
- - test/dummy-rails4/config/database.yml
357
- - test/dummy-rails4/config/initializers/mime_types.rb
358
- - test/dummy-rails4/config/initializers/wrap_parameters.rb
359
- - test/dummy-rails4/config/initializers/session_store.rb
360
- - test/dummy-rails4/config/initializers/user_impersonate.rb
361
- - test/dummy-rails4/config/initializers/secret_token.rb
362
- - test/dummy-rails4/config/initializers/backtrace_silencers.rb
363
- - test/dummy-rails4/config/initializers/devise.rb
364
- - test/dummy-rails4/config/application.rb
365
- - test/dummy-rails4/config/environment.rb
366
- - test/dummy-rails4/config/environments/production.rb
367
- - test/dummy-rails4/config/environments/test.rb
368
- - test/dummy-rails4/config/environments/development.rb
369
- - test/dummy-rails4/config/routes.rb
370
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/7411b44628aea038332f13f5ed73e073
371
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/2625847957ecb8614efc9b58b07cabdf
372
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
373
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
374
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/40fc2f3d2a468a00e463f1d313cb1683
375
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/681d1010f98d5ed273e67645c7cb454d
376
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/35f33ae400a6b0b5bf527436a68133b5
377
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/a51c3d05425a76a50181d8144764ac8f
378
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
379
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/edbef6e0d0a4742346cf479f2c522eb0
380
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/d0cde4ef34755468270bb49c4a3689f1
381
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/fd6c8e27b44aa2db77bf0a8b5118bdf8
382
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/3b83d2c20dfdb631259eb9d056ea4419
383
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/8483b329d12e7e986bc5a2204bbcb4f8
384
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c
385
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
386
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/bdaaf186999b6b59a3063d23b589d307
387
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
388
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/f1aac9109f5dae028b3c56eb07311208
389
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/79203f7770f5d8956dee4606e93f3d65
390
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
391
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/291faed72d20664326ce265eb8e1ed2f
392
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/b6f020b01a84691088a0c459a18f9c7e
393
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/5f1c168e97e274509aa4673eab0d86f6
394
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e
395
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/7f14251885cab31b58c878119cbdc199
396
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/8473d4c341d1accbf02a0c2d8270c68e
397
- - test/dummy-rails4/tmp/cache/assets/test/sprockets/8ff157af159f38d424ce1367e29760a2
398
- - test/dummy-rails4/public/500.html
399
- - test/dummy-rails4/public/422.html
400
- - test/dummy-rails4/public/favicon.ico
401
- - test/dummy-rails4/public/404.html
402
- - test/dummy-rails4/app/controllers/application_controller.rb
403
- - test/dummy-rails4/app/controllers/home_controller.rb
404
- - test/dummy-rails4/app/assets/javascripts/application.js
405
- - test/dummy-rails4/app/assets/javascripts/home.js
406
- - test/dummy-rails4/app/assets/stylesheets/home.css
407
- - test/dummy-rails4/app/assets/stylesheets/application.css
408
- - test/dummy-rails4/app/models/user.rb
409
- - test/dummy-rails4/app/helpers/home_helper.rb
410
- - test/dummy-rails4/app/helpers/application_helper.rb
411
- - test/dummy-rails4/app/views/layouts/application.html.erb
412
- - test/dummy-rails4/app/views/user_impersonate/_header.html.erb
413
- - test/dummy-rails4/app/views/home/index.html.erb
414
- - test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
415
- - test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb
416
- - test/dummy-rails4/db/schema.rb
417
- - test/dummy-rails4/db/test.sqlite3
418
- - test/dummy-rails4/db/development.sqlite3
419
- - test/dummy-rails4/log/test.log
420
- - test/dummy-rails4/log/development.log
421
- - test/dummy-rails4/config.ru
422
- - test/dummy-rails4/lib/tasks/cucumber.rake
423
- - test/dummy-rails4/Rakefile
424
- - test/dummy-rails4/README.rdoc
425
- - test/dummy-rails4/test/fixtures/users.yml
426
- - test/dummy-rails4/test/unit/user_test.rb
427
- - test/dummy-rails4/test/unit/helpers/home_helper_test.rb
428
- - test/dummy-rails4/script/rails
374
+ - test/functional/impersonate_controller_test.rb