lib/loquor/resource_mock.rb in loquor-1.9.0 vs lib/loquor/resource_mock.rb in loquor-1.10.0
- old
+ new
@@ -32,9 +32,13 @@
raise NameError.new("undefined local variable or method '#{arbitary_attributes.first}' for #{self.name}")
end
self.new(attributes.merge(overrides))
end
+ def custom_sample(attrs = {})
+ self.new(attrs)
+ end
+
def find(id)
self.new(attributes.merge(id: id))
end
def where(*args)