mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 00:49:07 +08:00
18 lines
360 B
Ruby
18 lines
360 B
Ruby
|
Given(/^the following users are registered$/) do |table|
|
||
|
table.hashes.each do |hash|
|
||
|
FactoryGirl.create(:user, hash)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
Given(/^I visit the sign up page$/) do
|
||
|
visit new_user_registration_path
|
||
|
end
|
||
|
|
||
|
Then(/^I fill the sign up form with$/) do |table|
|
||
|
table.hashes.each do |hash|
|
||
|
hash.each do |k, v|
|
||
|
fill_in k, with: v
|
||
|
end
|
||
|
end
|
||
|
end
|