From 8a0da54808b4abdc158d67b0bdd74e201aa1571f Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Tue, 30 Jun 2009 12:22:17 +0200 Subject: [PATCH] fix cucumber story --- features/step_definitions/user_steps.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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