前提・実現したいこと
railsチュートリアルエラー解決
リスト 7.24のテストが通らない
よろしくお願いします。
発生している問題・エラーメッセージ
Running via Spring preloader in process 5446
Started with run options --seed 55596
ERROR["test_should_get_about", StaticPagesControllerTest, 0.17055410199964172]
test_should_get_about#StaticPagesControllerTest (0.17s)
ActionView::Template::Error: ActionView::Template::Error: Missing partial layouts/_rails_default with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}. Searched in:
* "/home/ec2-user/environment/sample_app/app/views"
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___3127769034408787206_45866140' test/controllers/static_pages_controller_test.rb:18:in `block in <class:StaticPagesControllerTest>'
ERROR["test_should_get_contact", StaticPagesControllerTest, 0.17817625499992573]
test_should_get_contact#StaticPagesControllerTest (0.18s)
ActionView::Template::Error: ActionView::Template::Error: Missing partial layouts/_rails_default with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}. Searched in:
* "/home/ec2-user/environment/sample_app/app/views"
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___3127769034408787206_45866140' test/controllers/static_pages_controller_test.rb:24:in `block in <class:StaticPagesControllerTest>'
ERROR["test_should_get_home", StaticPagesControllerTest, 0.9626972069995645]
test_should_get_home#StaticPagesControllerTest (0.96s)
ActionView::Template::Error: ActionView::Template::Error: Invalid CSS after ".": expected class name, was "."
app/assets/stylesheets/custom.scss:167
app/views/static_pages/home.html.erb:13:in _app_views_static_pages_home_html_erb__4196967345426485036_45405380' test/controllers/static_pages_controller_test.rb:6:in
block in class:StaticPagesControllerTest'
ERROR["test_should_get_help", StaticPagesControllerTest, 0.9709416809996583]
test_should_get_help#StaticPagesControllerTest (0.97s)
ActionView::Template::Error: ActionView::Template::Error: Missing partial layouts/_rails_default with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}. Searched in:
* "/home/ec2-user/environment/sample_app/app/views"
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___3127769034408787206_45866140' test/controllers/static_pages_controller_test.rb:12:in `block in <class:StaticPagesControllerTest>'
ERROR["test_invalid_signup_information", UsersSignupTest, 0.986433458999727]
test_invalid_signup_information#UsersSignupTest (0.99s)
ActionView::Template::Error: ActionView::Template::Error: Missing partial layouts/_rails_default with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}. Searched in:
* "/home/ec2-user/environment/sample_app/app/views"
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___3127769034408787206_45866140' test/integration/users_signup_test.rb:6:in `block in <class:UsersSignupTest>'
ERROR["test_layout_links", SiteLayoutTest, 1.5236786559999018]
test_layout_links#SiteLayoutTest (1.52s)
ActionView::Template::Error: ActionView::Template::Error: Invalid CSS after ".": expected class name, was "."
app/assets/stylesheets/custom.scss:167
app/views/static_pages/home.html.erb:13:in _app_views_static_pages_home_html_erb__4196967345426485036_45405380' test/integration/site_layout_test.rb:6:in
block in class:SiteLayoutTest'
ERROR["test_full_title_helper", ApplicationHelperTest, 1.5305922419997842]
test_full_title_helper#ApplicationHelperTest (1.53s)
NameError: NameError: uninitialized constant ApplicationHelperTest::FILL_IN
test/helpers/application_helper_test.rb:5:in `block in class:ApplicationHelperTest'
ERROR["test_should_get_new", UsersControllerTest, 1.5381249709998883]
test_should_get_new#UsersControllerTest (1.54s)
ActionView::Template::Error: ActionView::Template::Error: Missing partial layouts/_rails_default with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}. Searched in:
* "/home/ec2-user/environment/sample_app/app/views"
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___3127769034408787206_45866140' test/controllers/users_controller_test.rb:6:in `block in <class:UsersControllerTest>'
19/19: [===================================] 100% Time: 00:00:01, Time: 00:00:01
Finished in 1.54207s
19 tests, 19 assertions, 0 failures, 8 errors, 0 skips
該当のソースコード
ruby rails
試したこと
コードの見直し、訂正
補足情報(FW/ツールのバージョンなど)
cloud9
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/15 00:58