1 require File.join( File.dirname(__FILE__), "..", "..", "spec_helper" )
5 DataMapper.auto_migrate!
8 it "should require a width & height" do
9 image = Image.create(Image.gen_attrs.except(:width))
10 image.should_not be_valid
11 image.errors.should include(:width)
13 image = Image.create(Image.gen_attrs.except(:height))
14 image.should_not be_valid
15 image.errors.should include(:height)