Fix a few missed renames
[merb_mart.git] / spec / models / upload / image_spec.rb
blob51bef2387eb9169e17a4980c5a795311e8488a6e
1 require File.join( File.dirname(__FILE__), "..", "..", "spec_helper" )
3 describe Image do
4   before(:each) do
5     DataMapper.auto_migrate!
6   end
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)
16   end
17 end