internetee-registry/spec/support/feature.rb
2014-09-29 11:54:24 +03:00

12 lines
310 B
Ruby

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