Commit c3c5fb1d2a2105200bb38689d0e156f465eed504
1 parent
919f6e79
Exists in
master
and in
1 other branch
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 | 335 | |
336 | 336 | get_auth upload_to_participation_rate_question_path(q, :format => 'xml') |
337 | 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 | 339 | end |
340 | 340 | end |
341 | 341 | ... | ... |