Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

update test_help to config properly turn natural language option #6995

Merged
merged 1 commit into from

2 participants

Francesco Rodríguez Carlos Antonio da Silva
Francesco Rodríguez

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 Rodríguez frodsan 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
Francesco Rodríguez

Also, you can see this commit.

Carlos Antonio da Silva carlosantoniodasilva merged commit 4503926 into from
Carlos Antonio da Silva

Thanks.

Francesco Rodríguez frodsan referenced this pull request from a commit
Francesco Rodríguez frodsan 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. Francesco Rodríguez

    update test_help to config properly turn natural language option

    frodsan 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
5 railties/lib/rails/test_help.rb
View
@@ -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.