test/node/test_front.rb in zold-0.11.11 vs test/node/test_front.rb in zold-0.11.12

- old
+ new

@@ -100,6 +100,20 @@ "Expected #{path} for score #{score.value}" ) end end end + + def test_gzip + FakeNode.new(log: test_log).run(['--ignore-score-weakness']) do |port| + response = Zold::Http.new(URI("http://localhost:#{port}/")).get + assert_equal( + '200', response.code, + "Expected HTTP 200 OK: Found #{response.code}" + ) + assert_operator( + 500, :>, response['content-length'].to_i, + 'Expected the content to be smaller than 500bytes for gzip' + ) + end + end end