Work with non-test_unit test_framework defined in config #75

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@zesty

I think this rates as a refactoring. All tests pass.

see also:
#68

@zesty

Hmmm, minitest-rails does not need the config/application.rb change noted in the README.md addition. Just works. Fwiw, here's what vanilla minitest does when added to app config per the new docs:

% rails g scaffold user name

invoke active_record
create db/migrate/20121016030542_create_users.rb
create app/models/user.rb
error mini_test [not found]
invoke resource_route
route resources :users
invoke scaffold_controller
create app/controllers/users_controller.rb
invoke erb
create app/views/users
create app/views/users/index.html.erb
create app/views/users/edit.html.erb
create app/views/users/show.html.erb
create app/views/users/new.html.erb
create app/views/users/_form.html.erb
error mini_test [not found]
invoke helper
create app/helpers/users_helper.rb
error mini_test [not found]
invoke assets
invoke coffee
create app/assets/javascripts/users.js.coffee
invoke scss
create app/assets/stylesheets/users.css.scss
invoke scss
identical app/assets/stylesheets/scaffolds.css.scss

@joshuaclayton
thoughtbot, inc. member

Could you add a test around this, using a different test framework than test_unit or rspec, to ensure that it's picked up correctly? Thanks!

@mattolson

+1 on this. I'd like to use mini_test with factory_girl.

@joshuaclayton joshuaclayton added a commit that referenced this pull request Dec 10, 2012
@joshuaclayton joshuaclayton Initial support for MiniTest
Closes #68, #75
bcbdc45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment