rails test 加载seeds.rb的两种方法
执行rails test时,rails默认执行下面的操作:
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
原创
2017-11-07 12:33:27 ·
975 阅读 ·
0 评论