Skip to content

Commit

Permalink
Merge pull request ManageIQ#7034 from ZitaNemeckova/fix_red
Browse files Browse the repository at this point in the history
Fix invalid login message
  • Loading branch information
himdel authored May 5, 2020
2 parents a277301 + 687fd48 commit a24acba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/dashboard_controller/verify_user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@
it 'fails for an existing user with wrong password' do
validation = controller.send(:validate_user, invalid_password, nil)
expect(validation.result).to eq(:fail)
expect(validation.flash_msg).to eq("Sorry, the username or password you entered is incorrect.")
expect(validation.flash_msg).to eq("The username or password you entered is incorrect.")
expect(validation.url).to be_nil
end

it 'fails for an invalid user' do
validation = controller.send(:validate_user, invalid_user, nil)
expect(validation.result).to eq(:fail)
expect(validation.flash_msg).to eq("Sorry, the username or password you entered is incorrect.")
expect(validation.flash_msg).to eq("The username or password you entered is incorrect.")
expect(validation.url).to be_nil
end

Expand Down

0 comments on commit a24acba

Please sign in to comment.