spec/orm/sequel_spec.rb in carrierwave-0.4.0 vs spec/orm/sequel_spec.rb in carrierwave-0.4.1

- old
+ new

@@ -109,21 +109,12 @@ end describe 'with validation' do before do - # Add validations - if CarrierWave::Sequel.new_sequel? - @class.class_eval do - def validate - errors.add(:image, 'FAIL!') - end - end - else - @class.class_eval do - validates_each(:image) do |o,a,v| - o.errors.add(a, 'FAIL!') - end + @class.class_eval do + def validate + errors.add(:image, 'FAIL!') end end # Turn off raising the exceptions on save @event.raise_on_save_failure = false end