Improve exceptions usage in specs:
* Throw symbols instead of raising exceptions to test code evaluation, this will reduce "bad" usages of exceptions, symbols seems a little better for now; * Add a specific exception to be used in specs for testing behaviour when an exception is raised from a recipe.
This commit is contained in:
1 parent
c3737e738e
commit
d677c3aa97
5 files changed
+21
-13
No files matched your search
Vendored
+1
-1
@@ -1 +1 @@
|
||||
raise 'error from recipe'
|
||||
raise SomeErrorInRecipe, 'some recipe error'
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
throw :recipe_code
|
||||
Reference in new issue
Block a user