diff options
Diffstat (limited to 'spec/models/profile_photo_spec.rb')
-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 |