aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'site/features/step_definitions/voting_steps.rb')
-rw-r--r--site/features/step_definitions/voting_steps.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/site/features/step_definitions/voting_steps.rb b/site/features/step_definitions/voting_steps.rb
index cfa1253..3740c0b 100644
--- a/site/features/step_definitions/voting_steps.rb
+++ b/site/features/step_definitions/voting_steps.rb
@@ -38,6 +38,8 @@ end
Given /^there is an item with some voting options for current agenda$/ do
agenda = Factory(:agenda)
+ AgendaItem.destroy_all
+ VotingOption.destroy_all
item = Factory(:agenda_item, :agenda => agenda)
voting_option1 = Factory(:voting_option, :agenda_item => item)
voting_option2 = Factory(:voting_option, :agenda_item => item, :description => 'Another choice')