lib/loquor/resource_mock.rb in loquor-0.5.2 vs lib/loquor/resource_mock.rb in loquor-0.5.3
- old
+ new
@@ -24,11 +24,11 @@
def attributes=(attrs)
@attributes = attrs
end
- def sample
- self.new(attributes)
+ def sample(overrides = {})
+ self.new(attributes.merge(overrides))
end
def find(id)
self.new(attributes.merge(id: id))
end