test/excon/links_test.rb in excon-hypermedia-0.5.3 vs test/excon/links_test.rb in excon-hypermedia-0.6.0
- old
+ new
@@ -7,22 +7,22 @@
#
# Validate the workings of `Excon::HyperResource::Resource::Links`.
#
class LinksTest < Minitest::Test
def body
- <<-EOF
+ <<-JSON
{
"_links": {
"self": {
"href": "https://example.org/product/bicycle"
},
"parts": {
"href": "https://example.org/product/bicycle/parts"
}
}
}
- EOF
+ JSON
end
def data
JSON.parse(body)
end
@@ -34,9 +34,9 @@
def test_links
assert_equal Excon::HyperMedia::ResourceObject::Links, links.class
end
def test_link_properties
- assert_equal %w(self parts), links.to_h.keys
+ assert_equal %w[self parts], links.to_h.keys
end
end
end