-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aff23a0
commit 240ae7d
Showing
4 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
require "helper" | ||
|
||
require "peddler/api/reports_2021_06_30" | ||
|
||
module Peddler | ||
class Error | ||
class NotFoundTest < Minitest::Test | ||
include FeatureHelpers | ||
|
||
def test_not_found | ||
error = assert_raises(NotFound) do | ||
api.get_report("1234567") | ||
end | ||
assert_equal(404, error.cause.status) | ||
end | ||
|
||
private | ||
|
||
def api_class | ||
API::Reports20210630 | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
test/vcr_cassettes/Peddler/Error/NotFoundTest/test_not_found.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.