Commit c3c5fb1d2a2105200bb38689d0e156f465eed504

Authored by Luke Baker
1 parent 919f6e79

fix test to handle rounding differences

ruby 1.8.7 and 1.9.3 appear to round differently
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
spec/integration/questions_spec.rb
@@ -335,7 +335,7 @@ describe "Questions" do @@ -335,7 +335,7 @@ describe "Questions" do
335 335
336 get_auth upload_to_participation_rate_question_path(q, :format => 'xml') 336 get_auth upload_to_participation_rate_question_path(q, :format => 'xml')
337 response.should be_success 337 response.should be_success
338 - response.body.should have_tag("uploadparticipationrate", :text => "0.555555555555556") 338 + response.body.should have_tag("uploadparticipationrate", :text => (5.0 / 9.0).to_s)
339 end 339 end
340 end 340 end
341 341