mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
10 lines
194 B
Ruby
10 lines
194 B
Ruby
module Feature
|
|
def sign_in(user)
|
|
visit '/admin/logout'
|
|
click_on 'ID card (user1)' if user.username == 'user1'
|
|
end
|
|
end
|
|
|
|
RSpec.configure do |c|
|
|
c.include Feature, type: :feature
|
|
end
|