7_0 / 8_0のテストからassert_templateを削除 - #105
Merged
Merged
Conversation
Contributor
Author
|
@claude 概要を参考に当PRをレビューしてください。
|
|
Claude finished @rakuda-san-desu's task —— View job 📋 レビュータスク
レビュー結果PRを詳細にレビューしました。全体的に適切な更新が行われており、Railsチュートリアルのテキストに合わせた変更として問題ありません。 ✅ 良い実装assert_template の適切な置き換え
rails-controller-testing gemの完全削除
変更の一貫性
💡 提案テストの可読性向上(オプション)現在の実装で問題ありませんが、将来的にテストヘルパーメソッドを導入することで、より簡潔なテストが書けるかもしれません: # test/test_helper.rb に追加(例)
def assert_page_title(expected_title)
assert_select "title", expected_title
end
# 使用例
assert_response :success
assert_page_title "Sign up | Ruby on Rails Tutorial Sample App"ただし、これは現在のRailsチュートリアルの範囲を超えるため、今回のPRでは不要です。 最終確認結果
このPRはマージして問題ありません。 👍 |
Contributor
Author
|
こちらもマージします🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cf. #104
概要
assert_templateをassert_responseやassert_selectに更新assignsを置き換え、今回assert_templateも置き換えたため、7_0 / 8_0 から不要になったrails-controller-testinggem を削除確認
rg -n "assert_template" 7_0 8_0で対象コードが残っていないことを確認rg -n "rails-controller-testing" 7_0 8_0で対象gemが残っていないことを確認git diff --check -- 7_0 8_0を実行