This project is archived and is in readonly mode.

#219 ✓invalid
Anil Wadghule

script/generate model creates wrong unit test file

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

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Tags

Pages