This project is archived and is in readonly mode.
Rails 3.0.3 --skip-test-unit not working correctly.
-
xds2000
mac/ruby 1.9.2/rails3.0.3
same problem:
xiaodeshi:~/projects$ rails new sample_app --skip-testunit --skip-prototypecreate create README create Rakefile create config.ru create .gitignore create Gemfile create app create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/mailersxiaodeshi:~/projects/sample_app$ rails g scaffold project name:string
invoke active_record create db/migrate/20110120161558_create_projects.rb create app/models/project.rb invoke test_unit create test/unit/project_test.rb create test/fixtures/projects.yml route resources :projects invoke scaffold_controller create app/controllers/projects_controller.rb invoke erb create app/views/projects create app/views/projects/index.html.erb create app/views/projects/edit.html.erb create app/views/projects/show.html.erb create app/views/projects/new.html.erb create app/views/projects/_form.html.erb invoke test_unit create test/functional/projects_controller_test.rb invoke helper create app/helpers/projects_helper.rb invoke test_unit create test/unit/helpers/projects_helper_test.rb invoke stylesheets create public/stylesheets/scaffold.css -
hemant
Working fine for me
I couldn't replicate the issue with rails 3.0.3 tried using following ruby versions
REE 1.8.7 patchlevel 248
1.9.2dev (2009-07-18 trunk 24186)@xds2000 I guess you typed the skip option incorrectly looking at what you have posted above the correct option is --skip-test-unit
Can you please check that ?Thanks
-
Matt Fawcett
Its adding the test folder for me also because
config.generators.test_frameworkdoes not get set in the application.rb file. It looks like it was fixed in commit bafa153 but I can't see it in the Rails 3.03 release. -
xds2000
@hemant, this is my typo issue.
@rgoytacaz
I think this behavior is not bug.
suppose you set -T only affect creating project phase.but in developing phase,
you generate model,the model default create test unit folder and code.it is natural.
if you want to use another test framework.you need add some parameters in /config/application.rb -
rgoytacaz (at gmail)
- No changes were found…
-
rgoytacaz (at gmail)
- No changes were found…