Commit 46387cf7 by knapo Committed by Jon Yurek

Add FakeModel#valid?

parent 1544a7b2
...@@ -125,6 +125,10 @@ class FakeModel ...@@ -125,6 +125,10 @@ class FakeModel
def run_paperclip_callbacks name, *args def run_paperclip_callbacks name, *args
end end
def valid?
errors.empty?
end
end end
def attachment(options={}) def attachment(options={})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment