Navigation Menu

Skip to content

Commit

Permalink
Fixed test for 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
colszowka committed Feb 9, 2011
1 parent 55ae8df commit 3739554
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test_serious.rb
Expand Up @@ -201,7 +201,12 @@ class TestSerious < Test::Unit::TestCase
should_respond_with 200
should_set_cache_control_to 300

should_contain_text "Merry Christmas! ☃", "feed entry:first title"
# Shit gets escaped on 1.8, while 1.9 copes with SNOWMAN!
if "1.9".respond_to?(:encoding)
should_contain_text "Merry Christmas! ☃", "feed entry:first title"
else
should_contain_text "Merry Christmas! &#9731;", "feed entry:first title"
end
should_contain_text "Christoph Olszowka", "feed entry:first author name:first"
end

Expand Down

0 comments on commit 3739554

Please sign in to comment.