Skip to content
Browse files

Make raise_model_error_* actually raise

  • Loading branch information...
1 parent 8b713b0 commit 9c07fa24651945f8f0ee69e034b68f02cca43fb9 @jeremyevans committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/fixture_dependencies/active_record.rb
  2. +1 −1 lib/fixture_dependencies/sequel.rb
View
2 lib/fixture_dependencies/active_record.rb
@@ -22,7 +22,7 @@ def model_save_AR(object)
end
def raise_model_error_AR(message)
- ActiveRecord::RecordNotFound
+ raise ActiveRecord::RecordNotFound, message
end
def reflection_AR(model, attr)
View
2 lib/fixture_dependencies/sequel.rb
@@ -23,7 +23,7 @@ def model_save_S(object)
end
def raise_model_error_S(message)
- Sequel::Error
+ raise Sequel::Error, message
end
def reflection_S(model, attr)

0 comments on commit 9c07fa2

Please sign in to comment.
Something went wrong with that request. Please try again.