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

Allow def test_... lines to be long #496

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

sambostock
Copy link
Contributor

We currently allow lines like

test "a really really ... really long test name" do

using the Active Support declarative test style to violate Layout/LineLength. It stands to reason we should also allow the equivalent Minitest style

def test_a_really_really_..._really_long_test_name

@sambostock sambostock requested a review from a team as a code owner February 9, 2023 01:06
@github-actions github-actions bot added the config change Changes the Rubocop config by enabling, disabling, or reconfiguring one or many cops label Feb 9, 2023
We currently allow lines like

    test "a really really ... really long test name" do

using the Active Support declarative test style to violate
`Layout/LineLength`. It stands to reason we should also allow the
equivalent Minitest style

    def test_a_really_really_..._really_long_test_name
@sambostock sambostock force-pushed the allow-long-lines-on-test-names branch from 20c4e61 to 1023d57 Compare February 9, 2023 01:07
Copy link
Contributor

@nvasilevski nvasilevski left a comment

Choose a reason for hiding this comment

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

👍

@nunosilva800
Copy link
Contributor

Good stuff!

@sambostock sambostock merged commit 53be4b4 into main Feb 9, 2023
@sambostock sambostock deleted the allow-long-lines-on-test-names branch February 9, 2023 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config change Changes the Rubocop config by enabling, disabling, or reconfiguring one or many cops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants