mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 23:56:09 +10:00
12 lines
235 B
Ruby
12 lines
235 B
Ruby
module SharedUser
|
|
include Spinach::DSL
|
|
|
|
step 'Create user "John Doe"' do
|
|
create(:user, name: "John Doe", username: "john_doe")
|
|
end
|
|
|
|
step 'I sign in as "John Doe"' do
|
|
login_with(User.find_by(name: "John Doe"))
|
|
end
|
|
end
|