tracks/features/step_definitions/user_steps.rb
Reinier Balt 2073f84cd8 update cucumber and refactor some of the stories
inspired by the railscasts about cucumber. Also fix a problem with ZenTest on case sensitive platforms
2009-05-22 23:14:40 +02:00

15 lines
No EOL
339 B
Ruby

Given /^the following user records?$/ do |table|
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