From 1f682d122323883ae20e67627d932f6c1ee0da70 Mon Sep 17 00:00:00 2001 From: Joshua Clayton Date: Mon, 26 Mar 2012 11:01:20 -0400 Subject: [PATCH] use has_link matcher instead of has_css --- features/step_definitions/homepage_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/homepage_steps.rb b/features/step_definitions/homepage_steps.rb index c367540..c563fd1 100644 --- a/features/step_definitions/homepage_steps.rb +++ b/features/step_definitions/homepage_steps.rb @@ -11,5 +11,5 @@ end Then /^I should be able to begin the registration process$/ do - page.should have_css("a[href='/sign_up']", text: "Sign up for an account") + page.should have_link("Sign up for an account", href: "/sign_up") end