Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

tests from script/generate have bad require paths

#1589

The model and controller tests generated when I do script/generate model or script/generate controller have the following require statement:

require 'test_helper'

This should be

require File.dirname(FILE) + '/../test_helper'

so I can run my test cases individually.

Reported by Daniel Choi · December 17th, 2008 @ 04:03 PM

State: invalid
Milestone: 2.x
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Daniel Choi
    Daniel Choi

    Markdown ate my underscores:

    require File.dirname(FILE) + '/../test_helper'

    December 17th, 2008 @ 04:05 PM

  2. josh
    josh
    • Assigned user set to Jeremy Kemper
    • State changed from new to invalid

    "Include the test dir in the load path: ruby -Itest test/units/foo_test.rb Or invoke the test via the test task: rake TEST=test/units/foo_test.rb"

    http://github.com/rails/rails/co...

    December 17th, 2008 @ 04:25 PM