mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
16 lines
358 B
Ruby
16 lines
358 B
Ruby
Given /^the following user records?$/ do |table|
|
|
User.delete_all
|
|
table.hashes.each do |hash|
|
|
user = Factory(:user, hash)
|
|
user.create_preference
|
|
end
|
|
end
|
|
|
|
Given "no users exists" do
|
|
User.delete_all
|
|
end
|
|
|
|
Then "I should be an admin" do
|
|
# just check on the presence of the menu item for managing users
|
|
Then "I should see \"Manage users\""
|
|
end
|