spec/attribute_spec.rb in attributor-3.0 vs spec/attribute_spec.rb in attributor-3.0.1

- old
+ new

@@ -688,16 +688,15 @@ it 'loads' do attribute.load(values).should =~ [1,2,12] end it 'validates' do - errors = attribute.validate(values) - errors.should_not be_empty - errors[0].should =~ /of the wrong type/ - errors[1].should =~ /value \(12\) is larger/ - end + object = attribute.load(values) + errors = attribute.validate(object) - + errors.should have(1).item + errors[0].should =~ /value \(12\) is larger/ + end end end