-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[WIP] Test Updates: Part 2 of 3 #1860
Conversation
current issue: |
Interesting: I can't find much mention of the |
I may put this on hold, and skip to step 3 (which is just re-organizing the test files) |
@@ -22,12 +22,12 @@ def render_skipping_adapter | |||
|
|||
tests AdapterSelectorTestController | |||
|
|||
def test_render_using_default_adapter | |||
test 'render_using_default_adapter' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this syntax comes from ActiveSupport::TestCase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
@@ -42,6 +42,7 @@ group :bench do | |||
end | |||
|
|||
group :test do | |||
gem 'minitest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in the gemspec. Was something not working?
Looks fine to me once tests pass. Maybe leave all the ones with ensure alone for now? |
I'm going to re-do this PR with your suggestions after #1863 is merged (hopefully). It's mostly a regex replace on the test names. And now that I know about ActiveSupport::Test, everything should pass next attempt |
Purpose
Using morre proper test naming
Changes
find
def test_(.+)$
replace with
test '$1' do
also, replace
with
Caveats
ensure can no longer be used by itself, as test blocks aren't methods
Related GitHub issues
#1850
Additional helpful information
Hopefully this will encourage future contributions to use the same test style