test/test_serious.rb in serious-0.1.0 vs test/test_serious.rb in serious-0.1.1

- old
+ new

@@ -7,20 +7,24 @@ # =================================================================== context "GET /" do setup { get '/' } should_respond_with 200 + + should_contain_text "Serious Test Blog", "#header h1 a" + should_contain_elements 3, "ul#articles li" should_contain_text "Merry Christmas!", "ul#articles li:first" should_contain_text "Merry christmas, dear reader!", "ul#articles li:first" should_not_contain_text "Lorem ipsum dolor...", "ul#articles li:first" should_contain_text "Ruby is the shit!", "ul#articles" should_contain_text "Some kind of introduction and summary", "ul#articles li" should_not_contain_text "The number is 4", "ul#articles li" should_contain_text "Foo Bar", "ul#articles" + should_contain_text "Serious Test Blog", "head title" should_contain_elements 1, "ul.archives li" should_contain_text "Disco 2000", "ul.archives li:first" end @@ -111,9 +115,10 @@ 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" + 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" end context "GET /2009/12/11/ruby-is-the-shit" do