LoginSignup
3
3

More than 5 years have passed since last update.

Railsのタスクから rake test* を消す

Posted at

RSpecの場合は出ていても要らないので。

もし、 require 'rails/all' となっていたなら、

config/application.rb
# This skip loading rails/test_unit/railtie
%w(
  active_record
  action_controller
  action_mailer
  active_resource
  sprockets
).each do |framework|
  begin
    require "#{framework}/railtie"
  rescue LoadError
  end
end

のように書き換える。 参考。 これは4.2だと必要な読み込み対象railtieが変わるっぽい。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3