internetee-registry/spec/support/feature.rb
2014-11-10 11:44:34 +02:00

10 lines
190 B
Ruby

module Feature
def sign_in(user)
visit '/logout'
click_on 'ID card (gitlab)' if user.username == 'gitlab'
end
end
RSpec.configure do |c|
c.include Feature, type: :feature
end