Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clearance master % rake1.9
- (in /home/qrush/Dev/ruby/clearance)
- insert include Clearance::Authentication into app/controllers/application_controller.rb
- insert include Clearance::User into app/models/user.rb
- exists test/factories
- identical test/factories/clearance.rb
- create db/migrate
- create db/migrate/20091208162602_clearance_create_users.rb
- readme README
- *******************************************************************************
- Ok, enough fancy automatic stuff. Time for some old school monkey copy-pasting.
- 1. Define a HOST constant in your environments files.
- In config/environments/test.rb and config/environments/development.rb it can be:
- HOST = "localhost"
- In production.rb it must be the actual host your application is deployed to.
- The constant is used by mailers to generate URLs in emails.
- 2. In config/environment.rb:
- DO_NOT_REPLY = "donotreply@example.com"
- 3. Define root_url to *something* in your config/routes.rb:
- map.root :controller => 'home'
- *******************************************************************************
- (in /home/qrush/Dev/ruby/clearance/test/rails_root)
- == ClearanceCreateUsers: migrating ===========================================
- -- create_table(:users)
- -> 0.0395s
- -- add_index(:users, [:id, :confirmation_token])
- -> 0.0011s
- -- add_index(:users, :email)
- -> 0.0010s
- -- add_index(:users, :remember_token)
- -> 0.0010s
- == ClearanceCreateUsers: migrated (0.0440s) ==================================
- exists features/step_definitions
- exists features/support
- create features/step_definitions/clearance_steps.rb
- create features/step_definitions/factory_girl_steps.rb
- create features/support/paths.rb
- create features/sign_in.feature
- create features/sign_out.feature
- create features/sign_up.feature
- create features/password_reset.feature
- [DEPRECATION] should_display_a_password_update_form: not meant to be public, no longer used internally
- [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
- [DEPRECATION] should_display_a_password_update_form: not meant to be public, no longer used internally
- [DEPRECATION] should_display_a_sign_up_form: not meant to be public, no longer used internally
- [DEPRECATION] should_create_user_successfully: not meant to be public, no longer used internally
- [DEPRECATION] should_change(expression, options) is deprecated. Use should_change(description, options) { code } instead.
- [DEPRECATION] signed_in_user_context: creates a Mystery Guest, causes Obscure Test
- [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
- [DEPRECATION] should_display_a_sign_in_form: not meant to be public, no longer used internally
- [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
- [DEPRECATION] should_deny_access_on: use a setup & should_deny_access(:flash => ?)
- [DEPRECATION] should_deny_access_on: use a setup & should_deny_access(:flash => ?)
- Loaded suite /usr/local/lib/ruby1.9/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader
- Started
- /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)
- 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'
- 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'
- 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'
- 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'
- from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:414:in `each'
- 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'
- from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:413:in `each'
- from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:413:in `run_test_suites'
- from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:387:in `run'
- from /usr/local/lib/ruby1.9/gems/1.9.1/gems/minitest-1.4.2/lib/minitest/unit.rb:328:in `block in autorun'
- rake aborted!
- Command failed with status (1): [/usr/local/bin/ruby1.9 -I"lib:lib:test" "/...]
- (See full trace by running task with --trace)
Add Comment
Please, Sign In to add comment