test/test_serious.rb in serious-0.2.10 vs test/test_serious.rb in serious-0.2.11
- old
+ new
@@ -137,9 +137,17 @@
should_contain_text "Merry Christmas! - Serious Test Blog", "head title"
should_contain_text "Merry christmas, dear reader!", ".article .body"
should_contain_text "Lorem ipsum dolor...", ".article .body"
should_contain_elements 1, ".article span.author"
end
+
+ # Ensure trailing slashes are possible in urls as well
+ # (fixed in http://github.com/colszowka/serious/commit/b684fad6be15a364e4feba6b4df27ddf404fe610)
+ context "GET /2009/12/24/merry-christmas/" do
+ setup { get '/2009/12/24/merry-christmas/' }
+ should_respond_with 200
+ should_contain_text "Merry Christmas!", "#container h2:first"
+ end
context "GET /2009/12/11/ruby-is-the-shit" do
setup { get '/2009/12/11/ruby-is-the-shit' }
should_respond_with 200