test/test_serious.rb in serious-0.3.0 vs test/test_serious.rb in serious-0.3.1
- old
+ new
@@ -199,10 +199,15 @@
context "GET /atom.xml" do
setup { get '/atom.xml' }
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! ☃", "feed entry:first title"
+ end
should_contain_text "Christoph Olszowka", "feed entry:first author name:first"
end
# ===================================================================
# Tests for disqus integration