Skip to content

Commit 82adde4

Browse files
Fewer escape characters.
1 parent 188b495 commit 82adde4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/tinify_source_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@
9999
describe "from_url" do
100100
before do
101101
stub_request(:post, "https://api:valid@api.tinify.com/shrink")
102-
.with(body: "{\"source\":{\"url\":\"http://example.com/test.jpg\"}}")
102+
.with(body: '{"source":{"url":"http://example.com/test.jpg"}}')
103103
.to_return(
104104
status: 201,
105105
headers: { Location: "https://api.tinify.com/some/location" },
106106
body: '{}'
107107
)
108108

109109
stub_request(:post, "https://api:valid@api.tinify.com/shrink")
110-
.with(body: "{\"source\":{\"url\":\"file://wrong\"}}")
110+
.with(body: '{"source":{"url":"file://wrong"}}')
111111
.to_return(
112112
status: 400,
113113
body: '{"error":"Source not found","message":"Cannot parse URL"}'

0 commit comments

Comments
 (0)