2016-10-26 1 views
0

Cloud9 IDE를 사용하여 모든 것이 잘 돌아가고 있습니다 ... 3.6에서 고급 테스트를 구성했으며 성공적으로 디버깅하지 못했습니다. ? 나는 약간의 도움을 사용할 수있다. Newer to Rails .... 미리 감사드립니다.테스트 오류 - 3.6 장 고급 테스트 - RUBY ON RAILS 5 튜토리얼 - 4th Ed - M Hartl

mcloudstack : ~/작업/sample_app (마스터) $ 레일 실행 옵션 시작 과정 8379 에서 봄 프리 로더를 통해 실행 테스트 가 47,305

오류를 --seed [ "test_full_title_helper", ApplicationHelperTest, 0.011410524020902812] test_full_title_helper #ApplicationHelperTest (0.01 초) 나가서 설명하자면 NameError : 나가서 설명하자면 NameError :

ERROR '의 정의에있어서 로컬 변수 또는 full_title' for #<ApplicationHelperTest:0x0000000386d230> test/helpers/application_helper_test.rb:5:in 블록 [ "test_layout_links"는 SiteLayoutTest는 0.908398] 은 (0.54s)를 # SiteLayoutTest를 test_layout_links ActionView :: 서식 : 오류 : ActionView :: 서식 : 오류 : 미정 방법 full_title' for #<#<Class:0x000000060dfb50>:0x000000060e3e80> app/views/layouts/application.html.erb:4:in _app_views_layouts_application_html_erb___1744770820645383621_50825200 ' 시험/적분/site_layout_test.rb : 6'에서 블록 '

ERROR [ "test_should_get_new"UsersControllerTest, 0.5737704820930958] test_should_get_new #의 UsersControllerTest (0.57s) ActionView :: 서식 : 오류 : ActionView :: 서식 : 오류 : 미정 방법 full_title' for #<#<Class:0x00000005169478>:0x0000000515de98> app/views/layouts/application.html.erb:4:in _app_views_layouts_application_html_erb___1744770820645383621_42595720 ' 시험/제어기/users_controller_test.rb : 6 : 블록'에있는 '

ER ROR [ "test_should_get_about", StaticPagesControllerTest, 0.6096331640146673] test_should_get_about # StaticPagesControllerTest (0.61s) ActionView :: 템플릿 : 오류 : ActionView :: 템플릿 : 오류 : 정의되지 않은 메서드 full_title' for #<#<Class:0x000000060dfb50>:0x00000004a8ff08> app/views/layouts/application.html.erb:4:in _app_views_layouts_application_html_erb___1744770820645383621_38997440 ' 테스트/컨트롤러/static_pages_controller_test.rb : 18 : 블록에있는` "

ERROR ["test_should_get_help "StaticPagesControllerTest, 0.6480439120205119] test_should_get_help # 1 StaticPagesControllerTest (0.65s) ActionView :: 서식 : 오류 : ActionView :: 서식 : 오류 : 미정 방법 full_title' for #<#<Class:0x000000060dfb50>:0x000000030fc730> app/views/layouts/application.html.erb:4:in _app_views_layouts_application_html_erb___1744770820645383621_25230720 ' 테스트/컨트롤러/static_pages_controller_test.rb : 12 : 블록`에서

ERROR '에서 [ "test_should_get_contact", StaticPagesControllerTest, 0.692532810033299] test_should_get_contact # StaticPagesControllerTest (0.69s) ActionView :: 템플릿 : 오류 : ActionView :: 템플릿 :: 오류 : 미정 방법 full_title' for #<#<Class:0x000000060dfb50>:0x000000021e4bf8> app/views/layouts/application.html.erb:4:in _app_views_layouts_application_html_erb___1744770820645383621_24873900 ' 시험/제어기/static_pages_controller_test.rb : 24 : 블록'에있는 '

ERROR [ "test_should_get_home"StaticPagesControllerTest, 0.749511854024604] test_should_get_home # StaticPagesControllerTest (0.75s) ActionView : :티 emplate :: 오류 : ActionView :: 서식 : 오류 : 미정 방법 full_title' for #<#<Class:0x000000060dfb50>:0x000000049c7e40> app/views/layouts/application.html.erb:4:in _app_views_layouts_application_html_erb___1744770820645383621_30378000 ' 시험/제어기/static_pages_controller_test.rb : 6 : 블록'에있는 '

7/7 : ======= ======] 100 % 시간 : 00:00:00, 시간 : 00:00:00

완료.75916s 테스트 7 개, 0 개의 어설 션, 0 개의 실패, 7 개의 오류, 0 개의 건너 뛰기

답변

0

테스트에서 정의되지 않은 메소드 full_title이 있습니다. 주의를 기울여야합니다. 어쩌면 코드에 오타가있을 수 있습니다.

관련 문제