diff options
author | Francis Irving <francis@mysociety.org> | 2010-07-15 14:55:14 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-07-15 14:55:14 +0100 |
commit | 8b8d61403afa9ff4263077a756ad3f09b22e722a (patch) | |
tree | 63b359fbb57adf42b583528003ef64d99a685c30 /spec/models | |
parent | 5b372d8c5d6d66a11a9329633c208b257003f59e (diff) |
Add specific draft attribute.
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/profile_photo_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/profile_photo_spec.rb b/spec/models/profile_photo_spec.rb index 1e33c5b61..7811fb5fc 100644 --- a/spec/models/profile_photo_spec.rb +++ b/spec/models/profile_photo_spec.rb @@ -35,7 +35,7 @@ describe ProfilePhoto, "when constructing a new photo" do it 'should accept a draft PNG and not resize it' do data = load_file_fixture("parrot.png") - profile_photo = ProfilePhoto.new(:draft => true, :data => data) + profile_photo = ProfilePhoto.new(:data => data, :draft => true) profile_photo.valid?.should == true profile_photo.image.format.should == 'PNG' profile_photo.image.columns.should == 198 |