Skip to content

Commit

Permalink
redmine api specs, fix warnings for unspecific exception handler specs
Browse files Browse the repository at this point in the history
  • Loading branch information
BuJo committed Nov 1, 2020
1 parent 389e529 commit 4d04a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/redmine_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
get_times_stub = stub_request(:get, "https://project.synyx.de/issues/1234.json")
.to_return(status: 200, body: '<html></html>')

expect { @redmine_api.get_issue('1234') }.to raise_error
expect { @redmine_api.get_issue('1234') }.to raise_error(/unexpected token/i)

expect(get_times_stub).to have_been_requested.at_least_once
end
Expand All @@ -37,7 +37,7 @@
get_times_stub = stub_request(:get, "https://project.synyx.de/issues/1234.json")
.to_return(status: 500, body: '<html></html>')

expect { @redmine_api.get_issue('1234') }.to raise_error
expect { @redmine_api.get_issue('1234') }.to raise_error(/Unexpected result code/i)

expect(get_times_stub).to have_been_requested.at_least_once
end
Expand Down

0 comments on commit 4d04a67

Please sign in to comment.