diff --git a/features/step_definitions/user_steps.rb b/features/step_definitions/user_steps.rb index 2c90244c..834bd20f 100644 --- a/features/step_definitions/user_steps.rb +++ b/features/step_definitions/user_steps.rb @@ -1,4 +1,5 @@ Given /^the following user records?$/ do |table| + User.delete_all table.hashes.each do |hash| user = Factory(:user, hash) user.create_preference @@ -12,4 +13,4 @@ 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 \ No newline at end of file +end