test/toto_test.rb in toto-0.2.5 vs test/toto_test.rb in toto-0.2.6
- old
+ new
@@ -31,9 +31,10 @@
context "GET /about" do
setup { @toto.get('/about') }
asserts("returns a 200") { topic.status }.equals 200
asserts("body is not empty") { not topic.body.empty? }
+ should("have access to @articles") { topic.body }.includes_html("#count" => /5/)
end
context "GET a single article" do
setup { @toto.get("/1900/05/17/the-wonderful-wizard-of-oz") }
asserts("returns a 200") { topic.status }.equals 200