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?? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/V4aaGxhXya4J. For more options, visit https://groups.google.com/groups/opt_out.
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 Pettersson <linus.pettersson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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?? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/V4aaGxhXya4J. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
As you can see in my first post I have that already :) I found the answer though. Another gem, "factory_girl_rails" requires test_unit. So I''ll just remove that :) Den tisdagen den 28:e augusti 2012 kl. 15:34:34 UTC+2 skrev Ian_Rgz:> > 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 Pettersson <linus.pe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> > >> 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?? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:> >> . >> To unsubscribe from this group, send email to >> rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/rubyonrails-talk/-/V4aaGxhXya4J. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/u3O8vd3XRm8J. For more options, visit https://groups.google.com/groups/opt_out.