diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-05 15:50:36 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-13 17:58:16 -0400 |
commit | 844d72716e2175dcd5e39b4d1eecb9e3560aa0b9 (patch) | |
tree | 0df35c04333f7fb8dd970f0c984251952525663a /spec/models | |
parent | 658b42b1fa79c77b1acef67a645b36a2928a71bd (diff) | |
download | gitlab-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/models')
-rw-r--r-- | spec/models/user_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index f1b8afa5854..9ff4288684b 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -329,12 +329,12 @@ describe User do end describe 'with default overrides' do - let(:user) { User.new(projects_limit: 123, can_create_group: false, can_create_team: true, theme_id: Gitlab::Theme::BASIC) } + let(:user) { User.new(projects_limit: 123, can_create_group: false, can_create_team: true, theme_id: 1) } it "should apply defaults to user" do expect(user.projects_limit).to eq(123) expect(user.can_create_group).to be_falsey - expect(user.theme_id).to eq(Gitlab::Theme::BASIC) + expect(user.theme_id).to eq(1) end end end |