diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-02-24 12:42:31 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-24 13:50:03 -0500 |
commit | 93e6282657b3c8498a9e705c6b4dc153ce6cade5 (patch) | |
tree | 2dc63ed5a3dd9e3508668cc9770ab63a5b6fb3b7 /spec/controllers/uploads_controller_spec.rb | |
parent | 0104ab79b3b6c6d532098bb98dc48f724633310f (diff) | |
download | gitlab-ce-93e6282657b3c8498a9e705c6b4dc153ce6cade5.tar.gz |
Add `:with_avatar` trait to User factory
Diffstat (limited to 'spec/controllers/uploads_controller_spec.rb')
-rw-r--r-- | spec/controllers/uploads_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/uploads_controller_spec.rb b/spec/controllers/uploads_controller_spec.rb index af5d043cf02..0d9f4b299bc 100644 --- a/spec/controllers/uploads_controller_spec.rb +++ b/spec/controllers/uploads_controller_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe UploadsController do - let!(:user) { create(:user, avatar: fixture_file_upload(Rails.root + "spec/fixtures/dk.png", "image/png")) } + let!(:user) { create(:user, :with_avatar) } describe "GET show" do context "when viewing a user avatar" do |