Skip to content
This repository

update test_help to config properly turn natural language option #6995

Merged
merged 1 commit into from about 2 years ago

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

Showing 1 unique commit by 1 author.

Jul 06, 2012
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
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 railties/lib/rails/test_help.rb
5 railties/lib/rails/test_help.rb
@@ -10,7 +10,10 @@
10 10 # Enable turn if it is available
11 11 begin
12 12 require 'turn'
13   - MiniTest::Unit.use_natural_language_case_names = true
  13 +
  14 + Turn.config do |c|
  15 + c.natural = true
  16 + end
14 17 rescue LoadError
15 18 end
16 19

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.