Active Record fixture格式错误

时间:2017-08-03 00:55:49

标签: ruby-on-rails

我已经为我的控制器编写了一些测试但是无论何时我运行命令rails test我都会收到错误消息活动记录格式错误。任何帮助或建议将受到高度赞赏。

enter image description here

#this is what I have on my fixture.yml
one:
  contract_name: MyString
  contract_status: MyString
  services_rendered: MyString
  contract_value: MyString
  award_year: 1
  location: one


two:
  contract_name: MyString
  contract_status: MyString
  services_rendered: MyString
  contract_value: MyString
  award_year: 1
  location: two

0 个答案:

没有答案