Created
August 15, 2010 23:44
-
-
Save davidray/526098 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) Failure: | |
| test: As a scout should be able to visit my account. (UserAccountTest) | |
| [/test/integration/user_account_test.rb:14:in `__bind_1281911707_398903' | |
| shoulda (2.11.3) lib/shoulda/context.rb:382:in `call' | |
| shoulda (2.11.3) lib/shoulda/context.rb:382:in `test: As a scout should be able to visit my account. ']: | |
| <"http://www.example.com/users/6563/user_account"> expected but was | |
| <"/users/6563/user_account">. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| context "As a scout" do | |
| setup do | |
| @user = login_as_a_scout | |
| end | |
| should "be able to visit my account" do | |
| click_link @user.regular_name | |
| assert_equal "200", response.code | |
| assert_equal user_user_account_url(@user), current_url | |
| end | |
| should "be able to change my user name" do | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment