diff options
Diffstat (limited to 'spec/helpers/users_helper_spec.rb')
-rw-r--r-- | spec/helpers/users_helper_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/users_helper_spec.rb b/spec/helpers/users_helper_spec.rb index 893d5cde24a..e3e599007a4 100644 --- a/spec/helpers/users_helper_spec.rb +++ b/spec/helpers/users_helper_spec.rb @@ -95,9 +95,9 @@ describe UsersHelper do end it 'includes the settings tab if the user can update themself' do - expect(helper).to receive(:can?).with(user, :read_user, user) { true } + expect(helper).to receive(:can?).with(user, :update_user, user) { true } - expect(items).to include(:profile) + expect(items).to include(:settings) end context 'when terms are enforced' do |