Commit 60d6510a352e7bf95c429f722de2ed0cb8e76b4b

Authored by Luke Baker
1 parent 3388399f

allow additional time for time-based test

we don't have control over speed of travis ci servers, so we're being more lenient
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
spec/models/question_spec.rb
@@ -233,7 +233,7 @@ describe Question do @@ -233,7 +233,7 @@ describe Question do
233 @question.choices.count.should == 3 233 @question.choices.count.should == 3
234 end 234 end
235 235
236 - it "should create 2000 ideas question in less than 20 seconds" do 236 + it "should create 2000 ideas question in less than 30 seconds" do
237 start = Time.now 237 start = Time.now
238 @question = Factory.build(:question) 238 @question = Factory.build(:question)
239 @question.ideas = [] 239 @question.ideas = []
@@ -246,7 +246,7 @@ describe Question do @@ -246,7 +246,7 @@ describe Question do
246 @question.choices.count.should == 2000 246 @question.choices.count.should == 2000
247 247
248 endTime = Time.now 248 endTime = Time.now
249 - (endTime - start).should < 20 249 + (endTime - start).should < 30
250 end 250 end
251 251
252 context "median response per session" do 252 context "median response per session" do