Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test on rails 6.1 #5323

Merged

Conversation

tricknotes
Copy link
Contributor

Rails 6.1 has been released.
https://edgeguides.rubyonrails.org/6_1_release_notes.html

This PR added CI matrix for Rails 6.1.

@@ -30,12 +30,12 @@ class AuthenticatableTest < ActiveSupport::TestCase

test 'find_or_initialize_with_errors adds blank error' do
user_with_error = User.find_or_initialize_with_errors([:email], { email: "" })
assert_equal [:email, "can't be blank"], user_with_error.errors.first
assert_equal ["Email can't be blank"], user_with_error.errors.full_messages_for(:email)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert_equal ['Email can't be blank'], user_with_error.errors.full_messages_for(:email)

Use single quotations

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This string contains ', so we should escape it as back slash in the single quotations.
Therefore, using " makes it readable.

Why do you think so?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quotes is fine here, thanks.

@carlosantoniodasilva carlosantoniodasilva merged commit 98fc5e8 into heartcombo:master Jan 4, 2021
@carlosantoniodasilva
Copy link
Member

Thanks!

@tricknotes tricknotes deleted the test-on-rails-6.1 branch January 5, 2021 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants