spec/integration/length_validator/maximum_spec.rb in dm-validations-0.10.1 vs spec/integration/length_validator/maximum_spec.rb in dm-validations-0.10.2

- old
+ new

@@ -5,11 +5,13 @@ it "has a meaninful error message with length restrictions mentioned" do @model.errors.on(:code).should == [ 'Code must be at most 10 characters long' ] end end -describe ::DataMapper::Validate::Fixtures::Barcode do +describe 'DataMapper::Validate::Fixtures::Barcode' do before :all do + DataMapper::Validate::Fixtures::Barcode.auto_migrate! + @model = DataMapper::Validate::Fixtures::Barcode.valid_instance end it_should_behave_like "valid model"