search for: create_valid_quest

Displaying 1 result from an estimated 1 matches for "create_valid_quest".

2008 Mar 11
0
[Stories]Changes in the database not taken into account
...ven I create a new question in the database, it doesn''t seem to be taken into account and keeps the 3 questions I created in the previous scenario. Here is what it looks like : Given("$amount questions?") do |amount| Question.delete_all amount.to_i.times do Factory.create_valid_question end end class Factory def self.create_valid_question() Question.create!(:value => "some question ") end end By adding outputs I observed that during the second scenario there are no questions in the database before the "times" loop, that they are created in...