summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGeorge Tsiolis <tsiolis.g@gmail.com>2018-06-07 12:24:57 +0000
committerPhil Hughes <me@iamphill.com>2018-06-07 12:24:57 +0000
commit93c7976ae26370a6d65c3d5038323911592c20ce (patch)
tree60b04aea4e6ac91c40bcf3e772fbe5ddbcf75616 /spec
parent717a46dd0a865d33b00cc94ec7252e706c8cd4eb (diff)
downloadgitlab-ce-93c7976ae26370a6d65c3d5038323911592c20ce.tar.gz
Restore navigation theme order
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/preferences_helper_spec.rb2
-rw-r--r--spec/lib/gitlab/themes_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/preferences_helper_spec.rb b/spec/helpers/preferences_helper_spec.rb
index 9940656fb68..363ebc88afd 100644
--- a/spec/helpers/preferences_helper_spec.rb
+++ b/spec/helpers/preferences_helper_spec.rb
@@ -31,7 +31,7 @@ describe PreferencesHelper do
describe '#user_application_theme' do
context 'with a user' do
it "returns user's theme's css_class" do
- stub_user(theme_id: 10)
+ stub_user(theme_id: 3)
expect(helper.user_application_theme).to eq 'ui-light'
end
diff --git a/spec/lib/gitlab/themes_spec.rb b/spec/lib/gitlab/themes_spec.rb
index af2f4568017..a8213988f70 100644
--- a/spec/lib/gitlab/themes_spec.rb
+++ b/spec/lib/gitlab/themes_spec.rb
@@ -6,7 +6,7 @@ describe Gitlab::Themes, lib: true do
css = described_class.body_classes
expect(css).to include('ui-indigo')
- expect(css).to include('ui-dark ')
+ expect(css).to include('ui-dark')
expect(css).to include('ui-blue')
end
end
@@ -14,7 +14,7 @@ describe Gitlab::Themes, lib: true do
describe '.by_id' do
it 'returns a Theme by its ID' do
expect(described_class.by_id(1).name).to eq 'Indigo'
- expect(described_class.by_id(10).name).to eq 'Light'
+ expect(described_class.by_id(3).name).to eq 'Light'
end
end