Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/appearances_helper_spec.rb')
-rw-r--r--spec/helpers/appearances_helper_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/helpers/appearances_helper_spec.rb b/spec/helpers/appearances_helper_spec.rb
index 4a32c586315..376db6412e8 100644
--- a/spec/helpers/appearances_helper_spec.rb
+++ b/spec/helpers/appearances_helper_spec.rb
@@ -152,7 +152,7 @@ RSpec.describe AppearancesHelper do
let!(:appearance) { create(:appearance, :with_logo) }
it 'returns a path' do
- expect(helper.brand_image).to match(%r(img .* data-src="/uploads/-/system/appearance/.*png))
+ expect(helper.brand_image).to match(%r{img .* data-src="/uploads/-/system/appearance/.*png})
end
context 'when there is no associated upload' do
@@ -163,14 +163,14 @@ RSpec.describe AppearancesHelper do
end
it 'falls back to using the original path' do
- expect(helper.brand_image).to match(%r(img .* data-src="/uploads/-/system/appearance/.*png))
+ expect(helper.brand_image).to match(%r{img .* data-src="/uploads/-/system/appearance/.*png})
end
end
end
context 'when there is no logo' do
it 'returns path of GitLab logo' do
- expect(helper.brand_image).to match(%r(img .* data-src="#{gitlab_logo}))
+ expect(helper.brand_image).to match(%r{img .* data-src="#{gitlab_logo}})
end
end
@@ -178,13 +178,13 @@ RSpec.describe AppearancesHelper do
let!(:appearance) { create(:appearance, title: 'My title') }
it 'returns the title' do
- expect(helper.brand_image).to match(%r(img alt="My title"))
+ expect(helper.brand_image).to match(%r{img alt="My title"})
end
end
context 'when there is no title' do
it 'returns the default title' do
- expect(helper.brand_image).to match(%r(img alt="GitLab))
+ expect(helper.brand_image).to match(%r{img alt="GitLab})
end
end
end
@@ -194,7 +194,7 @@ RSpec.describe AppearancesHelper do
let!(:appearance) { create(:appearance, :with_logo) }
it 'returns path of custom logo' do
- expect(helper.brand_image_path).to match(%r(/uploads/-/system/appearance/.*/dk.png))
+ expect(helper.brand_image_path).to match(%r{/uploads/-/system/appearance/.*/dk.png})
end
end
@@ -240,7 +240,7 @@ RSpec.describe AppearancesHelper do
let!(:appearance) { create(:appearance, :with_header_logo) }
it 'renders image tag' do
- expect(helper).to receive(:image_tag).with(appearance.header_logo_path, class: 'brand-header-logo')
+ expect(helper).to receive(:image_tag).with(appearance.header_logo_path, class: 'brand-header-logo', alt: '')
subject
end