diff options
Diffstat (limited to 'spec/controllers/profiles/preferences_controller_spec.rb')
-rw-r--r-- | spec/controllers/profiles/preferences_controller_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/controllers/profiles/preferences_controller_spec.rb b/spec/controllers/profiles/preferences_controller_spec.rb index aaf169cd42b..505f5b2d417 100644 --- a/spec/controllers/profiles/preferences_controller_spec.rb +++ b/spec/controllers/profiles/preferences_controller_spec.rb @@ -3,10 +3,12 @@ require 'spec_helper' RSpec.describe Profiles::PreferencesController do + let_it_be(:home_organization) { create(:organization) } let(:user) { create(:user) } before do sign_in(user) + create(:organization_user, organization: home_organization, user: user) allow(subject).to receive(:current_user).and_return(user) end @@ -28,6 +30,7 @@ RSpec.describe Profiles::PreferencesController do params.reverse_merge!( color_scheme_id: '1', dashboard: 'stars', + home_organization_id: home_organization.id, theme_id: '1' ) @@ -49,6 +52,7 @@ RSpec.describe Profiles::PreferencesController do diffs_deletion_color: '#123456', diffs_addition_color: '#abcdef', dashboard: 'stars', + home_organization_id: home_organization.id.to_s, theme_id: '2', first_day_of_week: '1', preferred_language: 'jp', |