rails strange unit test fails

前端 未结 1 940
不思量自难忘°
不思量自难忘° 2021-01-16 02:14

I try to run this simplest unit test:

   test \"the truth\" do
     assert true
   end

like this:

ruby -Itest test/unit/my_         


        
相关标签:
1条回答
  • 2021-01-16 02:48

    Quote from http://guides.rubyonrails.org/testing.html

    Rails by default automatically loads all fixtures from the test/fixtures folder for your unit and functional test. Loading involves three steps:

    • Remove any existing data from the table corresponding to the fixture
    • Load the fixture data into the table
    • Dump the fixture data into a variable in case you want to access it directly

    So I think you need to check those fixtures. Also I suggest you to read that tutorial. It is very well written.

    0 讨论(0)
提交回复
热议问题