diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-06-17 13:54:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-17 13:54:02 +0200 |
commit | 7eec279c7fb0350974fea4456c5c3bab7b457376 (patch) | |
tree | 5744c731973c3f0523f057cd6b96e75785c8de2d /spec/controllers | |
parent | 31e5d7efd700547d27d0393264859fa02932a8dd (diff) |
Change language opt-out to language opt-in (#7823)
* Switch filtered_languages to chosen_languages * Adjust interface * Remove unused translations
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/settings/preferences_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/settings/preferences_controller_spec.rb b/spec/controllers/settings/preferences_controller_spec.rb index 7877c7362..f2028cf39 100644 --- a/spec/controllers/settings/preferences_controller_spec.rb +++ b/spec/controllers/settings/preferences_controller_spec.rb @@ -18,12 +18,12 @@ describe Settings::PreferencesController do describe 'PUT #update' do it 'updates the user record' do - put :update, params: { user: { locale: 'en', filtered_languages: ['es', 'fr', ''] } } + put :update, params: { user: { locale: 'en', chosen_languages: ['es', 'fr', ''] } } expect(response).to redirect_to(settings_preferences_path) user.reload expect(user.locale).to eq 'en' - expect(user.filtered_languages).to eq ['es', 'fr'] + expect(user.chosen_languages).to eq ['es', 'fr'] end it 'updates user settings' do |