Skip to content

Commit

Permalink
Adapt users controller spec
Browse files Browse the repository at this point in the history
  • Loading branch information
krauselukas committed Feb 28, 2024
1 parent 50e2637 commit 860be2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/spec/controllers/webui/users_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@

it { expect(non_admin_user.realname).not_to eq('another real name') }
it { expect(non_admin_user.email).not_to eq('new_valid@email.es') }
it { expect(flash[:error]).to eq("Can't edit #{non_admin_user.login}") }
it { expect(flash[:error]).to eq('Sorry, you are not authorized to update this user.') }
it { is_expected.to redirect_to(root_url) }
end

Expand Down

0 comments on commit 860be2f

Please sign in to comment.