test/assertions_test.rb in rack-minitest-0.0.6 vs test/assertions_test.rb in rack-minitest-0.0.7
- old
+ new
@@ -18,9 +18,16 @@
get "/"
last_response.must_be_created
end
+ it "should have a spec-style matcher for a no content response" do
+ def app; stub_app(204); end
+
+ get "/"
+ last_response.must_be_no_content
+ end
+
it "should have a spec-style matcher for a moved permanently response" do
def app; stub_app(301); end
get "/"
last_response.must_be_moved_permanently