From c3c5fb1d2a2105200bb38689d0e156f465eed504 Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Thu, 25 Apr 2013 12:23:35 -0400 Subject: [PATCH] fix test to handle rounding differences --- spec/integration/questions_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/questions_spec.rb b/spec/integration/questions_spec.rb index 0686269..4556252 100644 --- a/spec/integration/questions_spec.rb +++ b/spec/integration/questions_spec.rb @@ -335,7 +335,7 @@ describe "Questions" do get_auth upload_to_participation_rate_question_path(q, :format => 'xml') response.should be_success - response.body.should have_tag("uploadparticipationrate", :text => "0.555555555555556") + response.body.should have_tag("uploadparticipationrate", :text => (5.0 / 9.0).to_s) end end -- libgit2 0.21.2