diff --git a/spec/support/user_methods.rb b/spec/support/user_methods.rb index 7e37e1251..fa11bfb66 100644 --- a/spec/support/user_methods.rb +++ b/spec/support/user_methods.rb @@ -24,6 +24,12 @@ class User p = build_post(class_name, opts) p.aspects = aspects + + if class_name == :photo + p.width = 42 unless opts.has_key? :width + p.height = 42 unless opts.has_key? :height + end + if p.save! self.aspects.reload