diff --git a/app/views/practices/show.html.slim b/app/views/practices/show.html.slim index 6f048673e78..852b76932ab 100644 --- a/app/views/practices/show.html.slim +++ b/app/views/practices/show.html.slim @@ -1,9 +1,9 @@ -- title @practice.title +- title "プラクティス #{@practice.title}" - set_meta_tags description: "プラクティス「#{@practice.title}」のページです。" - category = @practice.category(current_user.course) = render '/shared/modal_learning_completion', practice: @practice, tweet_url: @tweet_url, should_display_message_automatically: false -= render '/practices/page_header', title: title, category: category += render '/practices/page_header', title: @practice.title, category: category = render 'page_tabs', resource: @practice .page-body diff --git a/test/system/practices_test.rb b/test/system/practices_test.rb index 36c88652c01..332ae9ce284 100644 --- a/test/system/practices_test.rb +++ b/test/system/practices_test.rb @@ -5,7 +5,7 @@ class PracticesTest < ApplicationSystemTestCase test 'show practice' do visit_with_auth "/practices/#{practices(:practice1).id}", 'hatsuno' - assert_equal 'OS X Mountain Lionをクリーンインストールする | FBC', title + assert_equal 'プラクティス OS X Mountain Lionをクリーンインストールする | FBC', title end test 'show link to all practices with same category' do @@ -196,7 +196,7 @@ def wait_for_status_change end assert_text 'プラクティスを更新しました' visit "/practices/#{practice.id}" - assert_equal 'テストプラクティス | FBC', title + assert_equal 'プラクティス テストプラクティス | FBC', title end test 'show last updated user icon' do