diff options
author | Francis Irving <francis@mysociety.org> | 2010-07-14 16:00:12 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-07-14 16:00:12 +0100 |
commit | 2b91bbb4db04b6f3935478a3f6e8a0fe61fc06fb (patch) | |
tree | 154776728f256f302419913e84882a6991532de5 /spec | |
parent | f4164cd4099edcc7c7ad947ce128544d42027498 (diff) |
Remove mapping from photo to user
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/profile_photo_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/profile_photo_spec.rb b/spec/models/profile_photo_spec.rb index af58d0274..b7d45b8ae 100644 --- a/spec/models/profile_photo_spec.rb +++ b/spec/models/profile_photo_spec.rb @@ -17,7 +17,7 @@ describe ProfilePhoto, "when constructing a new photo" do it 'should accept and convert a PNG to right size' do data = load_file_fixture("parrot.png") - profile_photo = ProfilePhoto.new(:data => data, :user => mock_model(User, :valid? => true)) + profile_photo = ProfilePhoto.new(:data => data) profile_photo.valid?.should == true profile_photo.image.format.should == 'PNG' profile_photo.image.columns.should == 96 @@ -26,7 +26,7 @@ describe ProfilePhoto, "when constructing a new photo" do it 'should accept and convert a JPEG to right format and size' do data = load_file_fixture("parrot.jpg") - profile_photo = ProfilePhoto.new(:data => data, :user => mock_model(User, :valid? => true)) + profile_photo = ProfilePhoto.new(:data => data) profile_photo.valid?.should == true profile_photo.image.format.should == 'PNG' profile_photo.image.columns.should == 96 |