前提・実現したいこと
Ruby on Rails Tutorialの5.3.3を進めています。
テストに通らないのですが、原因と解決策が不明なので、ご教示いただけませんでしょうか。
エラーメッセージは以下です。
テストに通っていなくても、ブラウザで確認するとすべてのリンクは正常に動作しています。
すべてのエラーでtest/fixtures/alld.ymlが無い(たぶんそういう意味ですよね?)と言われているので確認したところ、ありませんでした。fixtures内にあるのは.keepとfiles/.keepだけでした。
Ruby on Rails Tutorialの5.3.3の演習の手前のテストまでは問題なく通っていました。しかし、なぜか今は、その前まで通っていたテストも通らなくなってしまいました。
/sample.app以下がアプリケーションのディレクトリです。
発生している問題・エラーメッセージ
Ruby
1ERROR["test_should_get_contact", StaticPagesControllerTest, 0.0026445239782333374] 2 test_should_get_contact#StaticPagesControllerTest (0.00s) 3Errno::ENOENT: Errno::ENOENT: No such file or directory @ rb_sysopen - /home/vagrant/environment/242env1_516/sample_app/test/fixtures/alld.yml 4 5 6ERROR["test_should_get_help", StaticPagesControllerTest, 0.00436671101488173] 7 test_should_get_help#StaticPagesControllerTest (0.00s) 8Errno::ENOENT: Errno::ENOENT: No such file or directory @ rb_sysopen - /home/vagrant/environment/242env1_516/sample_app/test/fixtures/alld.yml 9 10 11ERROR["test_should_get_about", StaticPagesControllerTest, 0.00587232899852097] 12 test_should_get_about#StaticPagesControllerTest (0.01s) 13Errno::ENOENT: Errno::ENOENT: No such file or directory @ rb_sysopen - /home/vagrant/environment/242env1_516/sample_app/test/fixtures/alld.yml 14 15 16ERROR["test_should_get_root", StaticPagesControllerTest, 0.007431395002640784] 17 test_should_get_root#StaticPagesControllerTest (0.01s) 18Errno::ENOENT: Errno::ENOENT: No such file or directory @ rb_sysopen - /home/vagrant/environment/242env1_516/sample_app/test/fixtures/alld.yml 19 20 21ERROR["test_layout_links", SiteLayoutTest, 0.009153813007287681] 22 test_layout_links#SiteLayoutTest (0.01s) 23Errno::ENOENT: Errno::ENOENT: No such file or directory @ rb_sysopen - /home/vagrant/environment/242env1_516/sample_app/test/fixtures/alld.yml 24
試したこと
alld.ymlというファイルについて検索しましたが、情報が出てきませんでした。
Railsテスティングガイド(https://railsguides.jp/testing.html)を読みましたが、結局原因がわかりません。
補足情報(FW/ツールのバージョンなど)
◆環境
・win10 + vagrant + VB + Ubuntu 18.04.2 LTS(GNU/Linux 4.15.0-29-generic x86_64) + Cyberduck
・Ruby 2.4.2 + Rails 5.1.6
・gemのバージョンはRuby on Rails Tutorialに合わせてます。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/10 04:02 編集