test/aitch/response/html_response_test.rb in aitch-1.2.1 vs test/aitch/response/html_response_test.rb in aitch-1.2.2
- old
+ new
@@ -5,10 +5,10 @@
class HtmlResponseTest < Minitest::Test
test "detects as html" do
register_uri(:get, "http://example.org/", body: "", content_type: "text/html")
response = Aitch.get("http://example.org/")
- assert response.html?
+ assert_predicate response, :html?
end
test "returns html" do
register_uri(:get, "http://example.org/", body: "Hello", content_type: "text/html")
response = Aitch.get("http://example.org/")