spec/smoke-rack_spec.rb in smoke-rack-0.0.3 vs spec/smoke-rack_spec.rb in smoke-rack-0.0.4
- old
+ new
@@ -2,11 +2,11 @@
describe "SmokeRack" do
include Rack::Test::Methods
def app
- Smoke::Rack
+ Rack::Smoke
end
it "renders the index" do
get '/smoke'
last_response.should be_ok
@@ -31,9 +31,14 @@
end
it "should serve using the correct content_type" do
get "/smoke/github.#{format}"
last_response.content_type.should include(format)
+ end
+
+ it "should have an etag set" do
+ get "/smoke/github.#{format}"
+ last_response.headers.should have_key("ETag")
end
end
end
end
end