Ruby on rails 轨道教程

Ruby on rails 轨道教程,ruby-on-rails,haml,railstutorial.org,Ruby On Rails,Haml,Railstutorial.org,我决定将RubyonRails教程从erb改为haml。我现在正在体验以下输出: FAIL["test_should_get_home", StaticPagesControllerTest, 0.066385842] test_should_get_home#StaticPagesControllerTest (0.07s) <Home | Ruby on Rails Tutorial Sample App> expected but was &

我决定将RubyonRails教程从erb改为haml。我现在正在体验以下输出:

     FAIL["test_should_get_home", StaticPagesControllerTest, 0.066385842]
     test_should_get_home#StaticPagesControllerTest (0.07s)
    <Home | Ruby on Rails Tutorial Sample App> expected but was
    <Home
    | Ruby on Rails Tutorial Sample App">..
    Expected 0 to be >= 1.
    test/controllers/static_pages_controller_test.rb:11:in `block in  <class:StaticPagesControllerTest>'

FAIL["test_should_get_about", StaticPagesControllerTest, 0.071358831]
test_should_get_about#StaticPagesControllerTest (0.07s)
    <About | Ruby on Rails Tutorial Sample App> expected but was
    <About
    | Ruby on Rails Tutorial Sample App">..
    Expected 0 to be >= 1.
    test/controllers/static_pages_controller_test.rb:23:in `block in <class:StaticPagesControllerTest>'

FAIL["test_should_get_contact", StaticPagesControllerTest, 0.07536422]
test_should_get_contact#StaticPagesControllerTest (0.08s)
    <Contact | Ruby on Rails Tutorial Sample App> expected but was
    <Contact
    | Ruby on Rails Tutorial Sample App">..
    Expected 0 to be >= 1.
    test/controllers/static_pages_controller_test.rb:29:in `block in <class:StaticPagesControllerTest>'

FAIL["test_should_get_help", StaticPagesControllerTest, 0.08334098]
test_should_get_help#StaticPagesControllerTest (0.08s)
    <Help | Ruby on Rails Tutorial Sample App> expected but was
    <Help
    | Ruby on Rails Tutorial Sample App">..
    Expected 0 to be >= 1.
       test/controllers/static_pages_controller_test.rb:17:in `block in    <class:StaticPagesControllerTest>'
所以问题是,我如何让haml在测试中把这一行读出来


提前感谢您的帮助。

要获得所需的结果,请从HTML中删除换行符:

= "#{yield :title} | Ruby on Rails Tutorial Sample App"
= "#{yield :title} | Ruby on Rails Tutorial Sample App"