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

Fix getting started with minitest framework feature #746

Conversation

nando
Copy link

@nando nando commented Nov 17, 2020

Summary

I followed the Getting Started with Aruba feature in order to use Aruba in my Minitest build and discovered a typo in the Aruba's setup method name, and also the reason why it wasn't detected by Aruba's current build: the test method name in the feature didn't start with "test_", so it never runs.

Details

  • I add "test_" to the test method name
  • I update the Aruba's setup call (from aruba_setup to setup_aruba)
  • I use assert_equal instead of #must_equal in the test implementation to avoid Minitest error.

In order to fix the error that currently breaks the build:

  1) Error:
FirstRun#test_getting_started_with_aruba:
RuntimeError: Calling #must_equal outside of test.
    test/use_aruba_with_minitest.rb:18:in `test_getting_started_with_aruba'

1 runs, 0 assertions, 0 failures, 1 errors, 0 skips
@mvz
Copy link
Contributor

mvz commented Dec 4, 2020

Thanks @nando! That looks good. Can you please rebase this on current master and combine commits to get rid of the 'oops' commits?

@mvz
Copy link
Contributor

mvz commented Jan 2, 2021

@nando do you need any help rebasing this?

@mvz
Copy link
Contributor

mvz commented Apr 1, 2024

Superseded by #921.

@mvz mvz closed this Apr 1, 2024
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 this pull request may close these issues.

2 participants