test/application_test.rb in rtomayko-sinatra-0.3.2 vs test/application_test.rb in rtomayko-sinatra-0.3.3
- old
+ new
@@ -94,9 +94,20 @@
should.be.ok
body.should.equal 'Blake'
end
+ specify "404 if NotFound is raised" do
+
+ get '/' do
+ raise Sinatra::NotFound
+ end
+
+ get_it '/'
+ should.be.not_found
+
+ end
+
end
context "Application#configure blocks" do
setup do