From 37f88f662b33d0d786e10b5f11e620605a17c1f9 Mon Sep 17 00:00:00 2001 From: Dhruv Kapadia Date: Mon, 7 Jun 2010 14:47:11 -0400 Subject: [PATCH] Make one test pass --- spec/models/question_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/models/question_spec.rb b/spec/models/question_spec.rb index 691ef6e..c0d9e88 100644 --- a/spec/models/question_spec.rb +++ b/spec/models/question_spec.rb @@ -205,10 +205,16 @@ describe Question do @a = user.record_appearance(visitor, @p) + vote_options = {:visitor_identifier => visitor.identifier, + :appearance_lookup => @a.lookup, + :prompt => @p, + :time_viewed => rand(1000), + :direction => (rand(2) == 0) ? "left" : "right"} + choice = rand(3) case choice when 0 - user.record_vote(visitor.identifier, @a.lookup, @p, rand(2), rand(1000)) + user.record_vote(vote_options) when 1 user.record_skip(visitor.identifier, @a.lookup, @p, rand(1000)) when 2 -- libgit2 0.21.2