Skip to content

Commit

Permalink
Merge pull request #7034 from ZitaNemeckova/fix_red
Browse files Browse the repository at this point in the history
Fix invalid login message

(cherry picked from commit a24acba)
  • Loading branch information
himdel authored and simaishi committed May 8, 2020
1 parent 0b8ab82 commit 956a025
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 956a025

Please sign in to comment.