Patch #7570

Change test_helper requirement in tests

Added by Jean-Baptiste Barth over 10 years ago. Updated over 9 years ago.

Status:NewStart date:2011-02-07
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Code cleanup/refactoring
Target version:-

Description

In r4509 I changed the way test_helper was required in all our tests, so that tests could run on ruby 1.9.2 (ftr, ruby 1.9.2 no longer includes "." in $LOAD_PATH by default). This change was also made to ease test runs from command line (e.g. ruby /path/to/one/test.rb).

Gregor said on github that a simple require 'test_helper' would be good enough with ruby's -I flag.

Any thought about that ? If not, I'll replace them with simplers require 'test_helper'.

History

#1 Updated by Etienne Massip over 10 years ago

No clue but that would be cleaner, for sure :)

#2 Updated by Jean-Baptiste Barth over 9 years ago

  • Assignee deleted (Jean-Baptiste Barth)

Also available in: Atom PDF