lib/generators/clearance/specs/templates/support/features/clearance_helpers.rb in clearance-2.5.0 vs lib/generators/clearance/specs/templates/support/features/clearance_helpers.rb in clearance-2.6.0
- old
+ new
@@ -34,9 +34,10 @@
visit root_path
expect(page).to have_button I18n.t("layouts.application.sign_out")
end
def expect_user_to_be_signed_out
+ visit root_path
expect(page).to have_content I18n.t("layouts.application.sign_in")
end
def user_with_reset_password
user = FactoryBot.create(:user)