We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 188b495 commit 82adde4Copy full SHA for 82adde4
1 file changed
test/tinify_source_test.rb
@@ -99,15 +99,15 @@
99
describe "from_url" do
100
before do
101
stub_request(:post, "https://api:valid@api.tinify.com/shrink")
102
- .with(body: "{\"source\":{\"url\":\"http://example.com/test.jpg\"}}")
+ .with(body: '{"source":{"url":"http://example.com/test.jpg"}}')
103
.to_return(
104
status: 201,
105
headers: { Location: "https://api.tinify.com/some/location" },
106
body: '{}'
107
)
108
109
110
- .with(body: "{\"source\":{\"url\":\"file://wrong\"}}")
+ .with(body: '{"source":{"url":"file://wrong"}}')
111
112
status: 400,
113
body: '{"error":"Source not found","message":"Cannot parse URL"}'
0 commit comments