spec/orm/sequel_spec.rb in carrierwave-0.2.0 vs spec/orm/sequel_spec.rb in carrierwave-0.2.1

- old
+ new

@@ -130,10 +130,19 @@ @event.image = stub_file('test.jpeg') @event.save.should be_true @event.reload @event[:image].should == 'test.jpeg' end - + + it "should remove the image if remove_image? returns true" do + @event.image = stub_file('test.jpeg') + @event.save + @event.remove_image = true + @event.save + @event.reload + @event.image.should be_nil + @event[:image].should == '' + end end describe 'with overriddent filename' do describe '#save' do