spec/backgrounder/orm/activemodel_spec.rb in carrierwave_backgrounder-0.2.0 vs spec/backgrounder/orm/activemodel_spec.rb in carrierwave_backgrounder-0.2.1
- old
+ new
@@ -7,9 +7,10 @@
@mock_class = Class.new do
def self.before_save(method, opts); nil; end
def self.after_commit(method, opts); nil; end
def avatar_changed?; nil; end
def remote_avatar_url; OpenStruct.new(:present? => true); end
+ def remove_avatar?; false; end
def previous_changes; {}; end
end
@mock_class.extend CarrierWave::Backgrounder::ORM::ActiveModel
end