Skip to content

Commit

Permalink
Fewer escape characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolftimmermans committed Jan 29, 2016
1 parent 188b495 commit 82adde4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tinify_source_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@
describe "from_url" do
before do
stub_request(:post, "https://api:[email protected]/shrink")
.with(body: "{\"source\":{\"url\":\"http://example.com/test.jpg\"}}")
.with(body: '{"source":{"url":"http://example.com/test.jpg"}}')
.to_return(
status: 201,
headers: { Location: "https://api.tinify.com/some/location" },
body: '{}'
)

stub_request(:post, "https://api:[email protected]/shrink")
.with(body: "{\"source\":{\"url\":\"file://wrong\"}}")
.with(body: '{"source":{"url":"file://wrong"}}')
.to_return(
status: 400,
body: '{"error":"Source not found","message":"Cannot parse URL"}'
Expand Down

0 comments on commit 82adde4

Please sign in to comment.