Skip to content

Instantly share code, notes, and snippets.

@davidray
Created August 15, 2010 23:44
Show Gist options
  • Select an option

  • Save davidray/526098 to your computer and use it in GitHub Desktop.

Select an option

Save davidray/526098 to your computer and use it in GitHub Desktop.
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">.
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