We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db452f1 commit e73dd4cCopy full SHA for e73dd4c
spec/rails_helper.rb
@@ -68,4 +68,6 @@
68
config.filter_rails_from_backtrace!
69
# arbitrary gems may also be filtered via:
70
# config.filter_gems_from_backtrace("gem name")
71
+
72
+ config.include SystemHelpers, type: :system
73
end
spec/support/system_helpers.rb
@@ -0,0 +1,9 @@
1
+module SystemHelpers
2
+ def login_as(user)
3
+ visit root_path
4
+ click_link("Sign In")
5
+ fill_in "email", with: user.email
6
+ fill_in "password", with: user.password
7
+ click_button("Sign in")
8
+ end
9
+end
0 commit comments