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.

script/generate model creates wrong unit test file

#219

When you use script/generate model 'model_name' generator with latest edge rails (Edge Rails revision 2463e38efd3cbcc10e7b0a93ad9c2d2224340668)

It creates a unit test file in test/unit folder. If model is User, then unit test file is user_test.rb.

It has require

require 'test-helper'

in it.

It should be

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

Tests fail until you make it correct.

Reported by Anil Wadghule · May 18th, 2008 @ 01:31 PM

State: invalid
Milestone: none
Assigned to: Pratik Pratik
Importance: none

Activity

  1. Anil Wadghule
    Anil Wadghule
    • Assigned user set to Pratik

    May 18th, 2008 @ 01:31 PM

  2. Pratik
    Pratik
    • State changed from new to invalid

    May 18th, 2008 @ 01:32 PM