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

New cop: Minitest/NoTestCases #216

Closed
fatkodima opened this issue Dec 30, 2022 · 0 comments · Fixed by #218
Closed

New cop: Minitest/NoTestCases #216

fatkodima opened this issue Dec 30, 2022 · 0 comments · Fixed by #218

Comments

@fatkodima
Copy link
Contributor

Warns when there are not test cases in the test class. Similar to the existing NoAssertions cop.

# bad
class SomethingTest < Minitest::Test
  def setup; end
end

# good
class SomethingTest < Minitest::Test
  def setup; end

  def test_something
    assert something
  end
end
tejasbubane added a commit to tejasbubane/rubocop-minitest that referenced this issue Dec 30, 2022
tejasbubane added a commit to tejasbubane/rubocop-minitest that referenced this issue Jan 1, 2023
tejasbubane added a commit to tejasbubane/rubocop-minitest that referenced this issue Jan 9, 2023
tejasbubane added a commit to tejasbubane/rubocop-minitest that referenced this issue Mar 13, 2023
tejasbubane added a commit to tejasbubane/rubocop-minitest that referenced this issue Mar 13, 2023
@koic koic closed this as completed in #218 Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant