Rails unit testing doesn't load fixtures

后端 未结 6 1097
梦谈多话
梦谈多话 2020-12-16 01:54

rake test:units fails in my current application, because the needed data of the fixtures is missing.

If I\'m loading the fixtures manually via rak

6条回答
  •  臣服心动
    2020-12-16 02:19

    My problem is forgot to put "require 'test_helper'" at the head. eg.

    require 'test_helper'
    
    class AdminUserTest < ActiveSupport::TestCase
      # test "the truth" do
      #   assert true
      # end
    end
    

提交回复
热议问题