spec/server_spec.rb in awestruct-0.5.1 vs spec/server_spec.rb in awestruct-0.5.2
- old
+ new
@@ -49,6 +49,13 @@
it "should return a 404 status code" do
get('/b-is-for-beer.html')
last_response.status.should == 404
end
end
+
+ describe "Directory with no index file" do
+ it "should return a 404 status code" do
+ get('/images/')
+ last_response.status.should == 404
+ end
+ end
end