我试图在我的应用程序上运行测试,但是当我执行rails测试命令时,我得到此夹具错误
ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError
ERROR["test_should_get_contact", StaticPagesControllerTest, 0.8860733015462756]
test_should_get_contact#StaticPagesControllerTest (0.89s)
ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError
ERROR["test_should_get_home", StaticPagesControllerTest, 0.8950023660436273]
test_should_get_home#StaticPagesControllerTest (0.90s)
ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError
ERROR["test_should_get_static", StaticPagesControllerTest, 0.8991773026064038]
test_should_get_static#StaticPagesControllerTest (0.90s)
ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError
ERROR["test_password_resets", PasswordResetsTest, 0.9067926732823253]
test_password_resets#PasswordResetsTest (0.91s)
ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError
89/89: [===========================================================] 100% Time: 00:00:00, Time: 00:00:00
Finished in 0.90997s
89 tests, 0 assertions, 0 failures, 89 errors, 0 skips
感谢任何形式的帮助。
Services.yml文件
one:
service_company_name: MyString
address: MyText
year_formed: 1
other_operational_countries: MyString
about_company: MyText
current_focus: MyString
services: MyString
estimated_booking: MyString
financial_status: MyText
location: one
two:
service_company_name: MyString
address: MyText
year_formed: 1
other_operational_countries: MyString
about_company: MyText
current_focus: MyString
services: MyString
estimated_booking: MyString
financial_status: MyText
location: two
location.yml
one:
country: MyString
supra_region: MyString
region: MyString
two:
country: MyString
supra_region: MyString
region: MyString