diff options
author | Rémy Coutable <remy@rymai.me> | 2018-06-11 14:54:25 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-06-11 14:54:25 +0300 |
commit | 0f90c1fd730663fea30bd4d6368adbfbe752e001 (patch) | |
tree | c06bf377d80f5b51d92cd4709e1741d0dd781e03 /spec/lib/gitlab/favicon_spec.rb | |
parent | 4274aeefcbf04aa7b66b087c79232ff245d32157 (diff) |
Don't use Rails.root.join for upload fixture paths
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/lib/gitlab/favicon_spec.rb')
-rw-r--r-- | spec/lib/gitlab/favicon_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/favicon_spec.rb b/spec/lib/gitlab/favicon_spec.rb index fdc5c0180e4..08c4a474217 100644 --- a/spec/lib/gitlab/favicon_spec.rb +++ b/spec/lib/gitlab/favicon_spec.rb @@ -18,7 +18,7 @@ RSpec.describe Gitlab::Favicon, :request_store do end it 'uses the custom favicon if a favicon appearance is present' do - create :appearance, favicon: fixture_file_upload(Rails.root.join('spec/fixtures/dk.png')) + create :appearance, favicon: fixture_file_upload('spec/fixtures/dk.png') expect(described_class.main).to match %r{/uploads/-/system/appearance/favicon/\d+/favicon_main_dk.png} end end |