-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add specs testing exceptions at various points in the code
- Loading branch information
Showing
7 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
cases/test_code/exceptions/no_method.sspec → ...e/exceptions/raise_before_shoes_app.sspec
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
----------- app code | ||
raise_exception_before_shoes_app_body | ||
Shoes.app do | ||
no_such_method | ||
end | ||
----------- test code | ||
assert true, "Even if the test code is fine, this spec should fail because the app fails." |
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,7 @@ | ||
--- | ||
----------- app code | ||
Shoes.app do | ||
raise_exception_inside_shoes_app_body | ||
end | ||
----------- test code | ||
assert true, "Even if the test code is fine, this spec should fail because the app fails." |
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,6 @@ | ||
--- | ||
----------- app code | ||
Shoes.app do | ||
end | ||
----------- test code | ||
raise_exception_in_test_code |
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
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