Commit 569ed9456599e3908c01067c13802f92b42ea587

Authored by Antonio Terceiro
1 parent 26a59413

Fix image validation test

We do not need the profile to be invalid, we just need to trigger the
validation.
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/unit/profile_test.rb
... ... @@ -1368,10 +1368,10 @@ class ProfileTest < ActiveSupport::TestCase
1368 1368 assert !profile.folders.include?(child)
1369 1369 end
1370 1370  
1371   - should 'validates profile image when save' do
  1371 + should 'validate profile image when save' do
1372 1372 profile = build(Profile, :image_builder => {:uploaded_data => fixture_file_upload('/files/rails.png', 'image/png')})
1373 1373 profile.image.expects(:valid?).returns(false).at_least_once
1374   - assert !profile.valid?
  1374 + profile.valid?
1375 1375 end
1376 1376  
1377 1377 should 'profile is invalid when image not valid' do
... ...