Remove test_unit

Hi!

I have an app that uses Rails 3.2.7. I want to use minitest-rails
(https://github.com/blowmage/minitest-rails) instead of test_unit. I
have
installed it and it works fine. The problem is when I generate
something,
say a model, it still uses the test_unit generators and NOT minitest.

So, I need to remove this somehow. I created a new app from scratch and
used minitest-rails and it works, so there is something weird going on
in
my app.

I have this in in “application.rb”

Pick the frameworks you want:

require “active_record/railtie”
require “action_controller/railtie”
require “action_mailer/railtie”
require “active_resource/railtie”
require “sprockets/railtie”

require “rails/test_unit/railtie” ## No test_unit!!

Still in “application.rb”, I have this:
module MyApp
class Application < Rails::Application

config.generators do |g|
  g.test_framework :mini_test, :spec => true, :fixture => false
end

end
end

Is there anything else I need to do? What could be loading test_unit??

Under your application.rb file remove the line:

require ‘rails/all’

and include only the railties you need excluding test unit

Regards.

2012/8/28 Linus P. [email protected]

As you can see in my first post I have that already :slight_smile:

I found the answer though. Another gem, “factory_girl_rails” requires
test_unit. So I’ll just remove that :slight_smile:

Den tisdagen den 28:e augusti 2012 kl. 15:34:34 UTC+2 skrev Ian_Rgz: