test/test_integration.rb in lanyon-0.4.3 vs test/test_integration.rb in lanyon-0.4.4
- old
+ new
@@ -82,19 +82,19 @@
describe "when asked for a nonexistent path and a custom 404 exists" do
before do
- @custom_404 = File.join(sourcedir, "404.html")
- File.open(@custom_404, "w") {|f| f.print "Custom 404" }
+ @custom_404_file = File.join(sourcedir, "404.html")
+ File.open(@custom_404_file, "w") {|f| f.print "Custom 404" }
app = get_app(source: sourcedir, destination: @destdir)
request = Rack::MockRequest.new(app)
@response = request.get("/not/a/page")
end
after do
- FileUtils.rm(@custom_404)
+ FileUtils.rm(@custom_404_file)
end
it "returns correct Content-Length header" do
_(@response.original_headers["Content-Length"]).must_equal "10"
end