lib/generators/clearance/specs/templates/support/features/clearance_helpers.rb in clearance-1.3.0 vs lib/generators/clearance/specs/templates/support/features/clearance_helpers.rb in clearance-1.4.0
- old
+ new
@@ -21,14 +21,14 @@
user
end
def user_should_be_signed_in
visit root_path
- page.should have_content I18n.t('layouts.application.sign_out')
+ page.should have_button I18n.t('layouts.application.sign_out')
end
def sign_out
- click_link I18n.t('layouts.application.sign_out')
+ click_button I18n.t('layouts.application.sign_out')
end
def user_should_be_signed_out
page.should have_content I18n.t('layouts.application.sign_in')
end