test/toto_test.rb in toto-0.2.2 vs test/toto_test.rb in toto-0.2.3
- old
+ new
@@ -51,9 +51,10 @@
context "through a year & month" do
setup { @toto.get('/2009/12') }
asserts("returns a 200") { topic.status }.equals 200
should("includes the entries for that month") { topic.body }.includes_elements("li.entry", 2)
+ should("includes the year & month") { topic.body }.includes_html("h1" => /2009\/12/)
end
context "through /archive" do
setup { @toto.get('/archive') }
end