1
0
mirror of https://github.com/danbee/my-images synced 2025-03-04 08:49:05 +00:00
my-images/spec/support/auth_helpers.rb

14 lines
245 B
Ruby

module AuthHelpers
def sign_in
allow_any_instance_of(SessionsController).
to receive(:in_organization?).
and_return(true)
visit "/"
within(".centre-stage") do
click_link("Sign in with GitHub")
end
end
end