diff options
author | Stan Hu <stanhu@gmail.com> | 2015-06-22 11:00:17 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-06-22 12:04:07 -0700 |
commit | fe94254571a1de4a27a5440356345680a639e9fc (patch) | |
tree | 701257a77054c607a7d3c81f5f5210c63c47117b /features/steps/profile | |
parent | bcb07929fe7d79be4eab86c7eb0cb0409a736efc (diff) | |
download | gitlab-ce-fe94254571a1de4a27a5440356345680a639e9fc.tar.gz |
Fix avatar tests to use banana_sample.gif since SVG is not supported
Diffstat (limited to 'features/steps/profile')
-rw-r--r-- | features/steps/profile/profile.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/profile/profile.rb b/features/steps/profile/profile.rb index 3f19bed8a0b..11e1163c352 100644 --- a/features/steps/profile/profile.rb +++ b/features/steps/profile/profile.rb @@ -27,14 +27,14 @@ class Spinach::Features::Profile < Spinach::FeatureSteps end step 'I change my avatar' do - attach_file(:user_avatar, File.join(Rails.root, 'public', 'gitlab_logo.png')) + attach_file(:user_avatar, File.join(Rails.root, 'spec', 'fixtures', 'banana_sample.gif')) click_button "Save changes" @user.reload end step 'I should see new avatar' do expect(@user.avatar).to be_instance_of AvatarUploader - expect(@user.avatar.url).to eq "/uploads/user/avatar/#{ @user.id }/gitlab_logo.png" + expect(@user.avatar.url).to eq "/uploads/user/avatar/#{ @user.id }/banana_sample.gif" end step 'I should see the "Remove avatar" button' do @@ -42,7 +42,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps end step 'I have an avatar' do - attach_file(:user_avatar, File.join(Rails.root, 'public', 'gitlab_logo.png')) + attach_file(:user_avatar, File.join(Rails.root, 'spec', 'fixtures', 'banana_sample.gif')) click_button "Save changes" @user.reload end |