daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest May 17th, 2018 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clearance master % rake1.9
  2. (in /home/qrush/Dev/ruby/clearance)
  3.       insert  include Clearance::Authentication into app/controllers/application_controller.rb
  4.       insert  include Clearance::User into app/models/user.rb
  5.       exists  test/factories
  6.    identical  test/factories/clearance.rb
  7.       create  db/migrate
  8.       create  db/migrate/20091208162602_clearance_create_users.rb
  9.       readme  README
  10.  
  11. *******************************************************************************
  12.  
  13. Ok, enough fancy automatic stuff. Time for some old school monkey copy-pasting.
  14.  
  15. 1. Define a HOST constant in your environments files.
  16. In config/environments/test.rb and config/environments/development.rb it can be:
  17.  
  18.     HOST = "localhost"
  19.  
  20. In production.rb it must be the actual host your application is deployed to.
  21. The constant is used by mailers to generate URLs in emails.
  22.  
  23. 2. In config/environment.rb:
  24.  
  25.     DO_NOT_REPLY = "donotreply@example.com"
  26.  
  27. 3. Define root_url to *something* in your config/routes.rb:
  28.  
  29.     map.root :controller => 'home'
  30.  
  31. *******************************************************************************
  32. (in /home/qrush/Dev/ruby/clearance/test/rails_root)
  33. ==  ClearanceCreateUsers: migrating ===========================================
  34. -- create_table(:users)
  35.    -> 0.0395s
  36. -- add_index(:users, [:id, :confirmation_token])
  37.    -> 0.0011s
  38. -- add_index(:users, :email)
  39.    -> 0.0010s
  40. -- add_index(:users, :remember_token)
  41.    -> 0.0010s
  42. ==  ClearanceCreateUsers: migrated (0.0440s) ==================================
  43.  
  44.       exists  features/step_definitions
  45.       exists  features/support
  46.       create  features/step_definitions/clearance_steps.rb
  47.       create  features/step_definitions/factory_girl_steps.rb
  48.       create  features/support/paths.rb
  49.       create  features/sign_in.feature
  50.       create  features/sign_out.feature
  51.       create  features/sign_up.feature
  52.       create  features/password_reset.feature
  53. [DEPRECATION] should_display_a_password_update_form: not meant to be public, no longer used internally
  54. [DEPRECATION] should_not_be_signed_in is no longer a valid test since we now store a remember_token in cookies, not user_id in session
  55. [DEPRECATION] should_display_a_password_update_form: not meant to be public, no longer used internally
  56. [DEPRECATION] should_display_a_sign_up_form: not meant to be public, no longer used internally
  57. [DEPRECATION] should_create_user_successfully: not meant to be public, no longer used internally
  58. [DEPRECATION] should_change(expression, options) is deprecated. Use should_change(description, options) { code } instead.
  59. [DEPRECATION] signed_in_user_context: creates a Mystery Guest, causes Obscure Test
  60. [DEPRECATION] should_not_be_signed_in is no longer a valid test since we now store a remember_token in cookies, not user_id in session
  61. [DEPRECATION] should_display_a_sign_in_form: not meant to be public, no longer used internally
  62. [DEPRECATION] should_not_be_signed_in is no longer a valid test since we now store a remember_token in cookies, not user_id in session
  63. [DEPRECATION] should_deny_access_on: use a setup & should_deny_access(:flash => ?)
  64. [DEPRECATION] should_deny_access_on: use a setup & should_deny_access(:flash => ?)
  65. Loaded suite /usr/local/lib/ruby1.9/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader
  66. Started
  67. /usr/local/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/test_process.rb:511:in `method_missing': undefined method `name' for #<AccountsControllerTest:0x9b88bd0> (NoMethodError)
  68.         from /usr/local/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/testing/setup_and_teardown.rb:31:in `rescue in ensure in run'
  69.         from /usr/local/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/testing/setup_and_teardown.rb:28:in `ensure in run'
  70.         from /usr/local/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/testing/setup_and_teardown.rb:28:in `run'
  71.         from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:420:in `block (2 levels) in run_test_suites'
  72.         from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:414:in `each'
  73.         from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:414:in `block in run_test_suites'
  74.         from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:413:in `each'
  75.         from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:413:in `run_test_suites'
  76.         from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:387:in `run'
  77.         from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:328:in `block in autorun'
  78. rake aborted!
  79. Command failed with status (1): [/usr/local/bin/ruby1.9 -I"lib:lib:test" "/...]
  80.  
  81. (See full trace by running task with --trace)
RAW Paste Data
Top