summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-05 15:50:36 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-06-13 17:58:16 -0400
commit844d72716e2175dcd5e39b4d1eecb9e3560aa0b9 (patch)
tree0df35c04333f7fb8dd970f0c984251952525663a /spec/features
parent658b42b1fa79c77b1acef67a645b36a2928a71bd (diff)
downloadgitlab-ce-844d72716e2175dcd5e39b4d1eecb9e3560aa0b9.tar.gz
Add Gitlab::Themes module; remove Gitlab::Theme
Now we can simply loop through all themes, among other things. This also removes the `dark_theme` / `light_theme` classes and the `theme_type` helper, since they weren't used anywhere.
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/profiles/preferences_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/profiles/preferences_spec.rb b/spec/features/profiles/preferences_spec.rb
index 0e033652a9c..7bbb591a4ec 100644
--- a/spec/features/profiles/preferences_spec.rb
+++ b/spec/features/profiles/preferences_spec.rb
@@ -8,14 +8,14 @@ describe 'Profile > Preferences' do
end
describe 'User changes their application theme', js: true do
- let(:default_class) { Gitlab::Theme.css_class_by_id(nil) }
- let(:theme_5_class) { Gitlab::Theme.css_class_by_id(5) }
+ let(:default) { Gitlab::Themes.default }
+ let(:theme) { Gitlab::Themes.by_id(5) }
before do
visit profile_preferences_path
end
- it 'changes immediately' do
+ it 'reflects the changes immediately' do
expect(page).to have_selector("body.#{default.css_class}")
choose "user_theme_id_#{theme.id}"