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:
2
spec/fixtures/recipes/error.rb
vendored
2
spec/fixtures/recipes/error.rb
vendored
@@ -1 +1 @@
|
||||
raise 'error from recipe'
|
||||
raise SomeErrorInRecipe, 'some recipe error'
|
||||
|
||||
Reference in New Issue
Block a user