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
@@ -1,92 +0,0 @@
1
-  (0.3ms) begin transaction
2
- ---------------------------------------------------------
3
- UserImpersonate::DeviseHelpersTest: test_user_class_other
4
- ---------------------------------------------------------
5
-  (0.1ms) rollback transaction
6
-  (0.1ms) begin transaction
7
- --------------------------------------------------------
8
- UserImpersonate::DeviseHelpersTest: test_user_finder_nil
9
- --------------------------------------------------------
10
-  (0.0ms) rollback transaction
11
-  (0.2ms) begin transaction
12
- ------------------------------------------------------------------
13
- UserImpersonate::DeviseHelpersTest: test_user_finder_not_specified
14
- ------------------------------------------------------------------
15
-  (0.0ms) rollback transaction
16
-  (0.2ms) begin transaction
17
- ----------------------------------------------------------
18
- UserImpersonate::DeviseHelpersTest: test_user_finder_other
19
- ----------------------------------------------------------
20
-  (0.0ms) rollback transaction
21
-  (0.1ms) begin transaction
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
-  (0.1ms) rollback transaction
31
-  (0.2ms) begin transaction
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
-  (0.1ms) rollback transaction
41
-  (0.2ms) begin transaction
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
-  (0.1ms) rollback transaction
48
-  (0.2ms) begin transaction
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
-  (0.2ms) rollback transaction
56
-  (0.4ms) begin transaction
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
-  (0.1ms) rollback transaction
63
-  (0.1ms) begin transaction
64
- ------------------------------------------------------------------
65
- UserImpersonate::ImpersonateControllerTest: test_staff_class_other
66
- ------------------------------------------------------------------
67
-  (0.0ms) rollback transaction
68
-  (0.1ms) begin transaction
69
- -----------------------------------------------------------------
70
- UserImpersonate::ImpersonateControllerTest: test_staff_finder_nil
71
- -----------------------------------------------------------------
72
-  (0.0ms) rollback transaction
73
-  (0.0ms) begin transaction
74
- ---------------------------------------------------------------------------
75
- UserImpersonate::ImpersonateControllerTest: test_staff_finder_not_specified
76
- ---------------------------------------------------------------------------
77
-  (0.0ms) rollback transaction
78
-  (0.1ms) begin transaction
79
- -------------------------------------------------------------------
80
- UserImpersonate::ImpersonateControllerTest: test_staff_finder_other
81
- -------------------------------------------------------------------
82
-  (0.0ms) rollback transaction
83
-  (0.1ms) begin transaction
84
- --------------------------------------------------------------------------------------------
85
- UserImpersonate::ImpersonateControllerTest: test_user_table_should_return_correct_table_name
86
- --------------------------------------------------------------------------------------------
87
-  (0.0ms) rollback transaction
88
-  (0.1ms) begin transaction
89
- -------------------------------
90
- UserImpersonateTest: test_truth
91
- -------------------------------
92
-  (0.0ms) rollback transaction