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.
- checksums.yaml +4 -4
- data/README.md +4 -10
- data/app/controllers/user_impersonate/impersonate_controller.rb +19 -8
- data/lib/user_impersonate/version.rb +1 -1
- data/test/test_utils.rb +3 -10
- metadata +66 -158
- data/test/dummy-rails3/README.rdoc +0 -261
- data/test/dummy-rails3/Rakefile +0 -7
- data/test/dummy-rails3/app/assets/javascripts/application.js +0 -15
- data/test/dummy-rails3/app/assets/javascripts/home.js +0 -2
- data/test/dummy-rails3/app/assets/stylesheets/application.css +0 -16
- data/test/dummy-rails3/app/assets/stylesheets/home.css +0 -7
- data/test/dummy-rails3/app/controllers/application_controller.rb +0 -3
- data/test/dummy-rails3/app/controllers/home_controller.rb +0 -4
- data/test/dummy-rails3/app/helpers/application_helper.rb +0 -2
- data/test/dummy-rails3/app/helpers/home_helper.rb +0 -2
- data/test/dummy-rails3/app/models/user.rb +0 -17
- data/test/dummy-rails3/app/views/home/index.html.erb +0 -11
- data/test/dummy-rails3/app/views/layouts/application.html.erb +0 -22
- data/test/dummy-rails3/app/views/user_impersonate/_header.html.erb +0 -65
- data/test/dummy-rails3/config.ru +0 -4
- data/test/dummy-rails3/config/application.rb +0 -60
- data/test/dummy-rails3/config/boot.rb +0 -10
- data/test/dummy-rails3/config/database.yml +0 -25
- data/test/dummy-rails3/config/environment.rb +0 -5
- data/test/dummy-rails3/config/environments/development.rb +0 -40
- data/test/dummy-rails3/config/environments/production.rb +0 -67
- data/test/dummy-rails3/config/environments/test.rb +0 -37
- data/test/dummy-rails3/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy-rails3/config/initializers/devise.rb +0 -232
- data/test/dummy-rails3/config/initializers/mime_types.rb +0 -5
- data/test/dummy-rails3/config/initializers/secret_token.rb +0 -7
- data/test/dummy-rails3/config/initializers/session_store.rb +0 -8
- data/test/dummy-rails3/config/initializers/user_impersonate.rb +0 -45
- data/test/dummy-rails3/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy-rails3/config/locales/devise.en.yml +0 -58
- data/test/dummy-rails3/config/locales/en.yml +0 -5
- data/test/dummy-rails3/config/routes.rb +0 -8
- data/test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb +0 -48
- data/test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb +0 -5
- data/test/dummy-rails3/db/schema.rb +0 -36
- data/test/dummy-rails3/lib/tasks/cucumber.rake +0 -65
- data/test/dummy-rails3/public/404.html +0 -26
- data/test/dummy-rails3/public/422.html +0 -26
- data/test/dummy-rails3/public/500.html +0 -25
- data/test/dummy-rails3/public/favicon.ico +0 -0
- data/test/dummy-rails3/script/rails +0 -6
- data/test/dummy-rails3/test/fixtures/users.yml +0 -14
- data/test/dummy-rails3/test/unit/helpers/home_helper_test.rb +0 -4
- data/test/dummy-rails3/test/unit/user_test.rb +0 -7
- data/test/dummy-rails4/db/test.sqlite3 +0 -0
- data/test/dummy-rails4/log/test.log +0 -92
@@ -1,92 +0,0 @@
|
|
1
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2
|
-
---------------------------------------------------------
|
3
|
-
UserImpersonate::DeviseHelpersTest: test_user_class_other
|
4
|
-
---------------------------------------------------------
|
5
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
6
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
-
--------------------------------------------------------
|
8
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_nil
|
9
|
-
--------------------------------------------------------
|
10
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
12
|
-
------------------------------------------------------------------
|
13
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_not_specified
|
14
|
-
------------------------------------------------------------------
|
15
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
17
|
-
----------------------------------------------------------
|
18
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_other
|
19
|
-
----------------------------------------------------------
|
20
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
21
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
22
|
-
-------------------------------------------------------------------------------------------------
|
23
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_to_use_a_different_model_than_User
|
24
|
-
-------------------------------------------------------------------------------------------------
|
25
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
26
|
-
Redirected to
|
27
|
-
Redirected to http://test.host/
|
28
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
29
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
30
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
31
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
32
|
-
--------------------------------------------------------------------------------------
|
33
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_uses_default_model_User
|
34
|
-
--------------------------------------------------------------------------------------
|
35
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
36
|
-
Redirected to
|
37
|
-
Redirected to http://test.host/
|
38
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
39
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
40
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
41
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
42
|
-
-------------------------------------------------------------------------------------
|
43
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
44
|
-
-------------------------------------------------------------------------------------
|
45
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
46
|
-
Completed 401 Unauthorized in 6ms
|
47
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
48
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
49
|
-
------------------------------------------------------------------------------------------
|
50
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
51
|
-
------------------------------------------------------------------------------------------
|
52
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
53
|
-
Redirected to http://test.host/
|
54
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
55
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
56
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
57
|
-
------------------------------------------------------------------------------------
|
58
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
59
|
-
------------------------------------------------------------------------------------
|
60
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
61
|
-
Completed 401 Unauthorized in 0ms
|
62
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
63
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64
|
-
------------------------------------------------------------------
|
65
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_class_other
|
66
|
-
------------------------------------------------------------------
|
67
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
68
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
69
|
-
-----------------------------------------------------------------
|
70
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_nil
|
71
|
-
-----------------------------------------------------------------
|
72
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
73
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
74
|
-
---------------------------------------------------------------------------
|
75
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_not_specified
|
76
|
-
---------------------------------------------------------------------------
|
77
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
78
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
79
|
-
-------------------------------------------------------------------
|
80
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_other
|
81
|
-
-------------------------------------------------------------------
|
82
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
83
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84
|
-
--------------------------------------------------------------------------------------------
|
85
|
-
UserImpersonate::ImpersonateControllerTest: test_user_table_should_return_correct_table_name
|
86
|
-
--------------------------------------------------------------------------------------------
|
87
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
88
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
89
|
-
-------------------------------
|
90
|
-
UserImpersonateTest: test_truth
|
91
|
-
-------------------------------
|
92
|
-
[1m[35m (0.0ms)[0m rollback transaction
|