Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

update test_help to config properly turn natural language option #6995

Merged
merged 1 commit into from

2 participants

@frodsan

Last versions of Turn don't monkey patch MiniTest to setup
the natural language option. Here is an
example.

This patches the following behaviour:

$ rake test:units
`<top (required)>': undefined method `use_natural_language_case_names='
for MiniTest::Unit:Class (NoMethodError)
Francesco Rodriguez update test_help to config properly turn natural language option
Last versions of Turn don't monkey patch MiniTest to setup
the natural language option. Here is an
[example](https://github.com/TwP/turn/blob/master/try/test_autorun_minitest.rb#L3).

This patches the following behaviour:

    $ rake test:units
    `<top (required)>': undefined method `use_natural_language_case_names='
    for MiniTest::Unit:Class (NoMethodError)
df10279
@frodsan

Also, you can see this commit.

@carlosantoniodasilva carlosantoniodasilva merged commit 4503926 into rails:master
@carlosantoniodasilva

Thanks.

@frodsan frodsan referenced this pull request from a commit
Francesco Rodriguez Backport #6995 to 3-2 stable
Update `test_help` to config properly turn natural language option.
Last versions of Turn don't monkey patch MiniTest to setup
the natural language option. Here is an [example](https://github.com/TwP/turn/blob/master/try/test_autorun_minitest.rb#L3).

This patches the following behaviour:

    $ rake test:units
    `<top (required)>': undefined method `use_natural_language_case_names='
    for MiniTest::Unit:Class (NoMethodError)
3326b8b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 6, 2012
  1. update test_help to config properly turn natural language option

    Francesco Rodriguez authored
    Last versions of Turn don't monkey patch MiniTest to setup
    the natural language option. Here is an
    [example](https://github.com/TwP/turn/blob/master/try/test_autorun_minitest.rb#L3).
    
    This patches the following behaviour:
    
        $ rake test:units
        `<top (required)>': undefined method `use_natural_language_case_names='
        for MiniTest::Unit:Class (NoMethodError)
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 railties/lib/rails/test_help.rb
View
5 railties/lib/rails/test_help.rb
@@ -10,7 +10,10 @@
# Enable turn if it is available
begin
require 'turn'
- MiniTest::Unit.use_natural_language_case_names = true
+
+ Turn.config do |c|
+ c.natural = true
+ end
rescue LoadError
end
Something went wrong with that request. Please try again.