aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/models
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/test/models')
-rw-r--r--activejob/test/models/person.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activejob/test/models/person.rb b/activejob/test/models/person.rb
index b31396db4b..76a8f40616 100644
--- a/activejob/test/models/person.rb
+++ b/activejob/test/models/person.rb
@@ -1,9 +1,12 @@
class Person
+ class RecordNotFound < StandardError; end
+
include GlobalID::Identification
attr_reader :id
def self.find(id)
+ raise RecordNotFound.new("Cannot find person with ID=404") if id.to_i==404
new(id)
end