提出物が必要ないプラクティスにも提出物のタブが表示されているバグの修正・テストコードの実装#9654
Conversation
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughPracticeの取得を Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
d12a827 to
9d53663
Compare
20f6d53 to
b3d679a
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@test/system/practice/page_tabs_test.rb`:
- Line 5: クラス名がファイル名とRailsの命名規則に合っていません: Change the class declaration from
Practice::CompletionTest to Practice::PageTabsTest in the test file so the class
name matches page_tabs_test.rb; locate the class definition line (class
Practice::CompletionTest < ApplicationSystemTestCase) and rename the constant to
Practice::PageTabsTest, keeping the existing superclass and any test contents
unchanged.
|
@zamami |
|
@y-kawahara-gs |
|
@y-kawahara-gs |
|
@y-kawahara-gs |
zamami
left a comment
There was a problem hiding this comment.
見たところ特に問題なさそうです。
実装お疲れ様でした!
|
@okuramasafumi |
|
@y-kawahara-gs 連絡ありがとうございます!マージしましたー |

Issue
概要
変更確認方法
ここで提出物のあるプラクティスは提出物タブが存在することを確認できる
ここで提出物のないプラクティスは提出物タブが存在しないことを確認できる
/practices/1019809339/productsにアクセスするとNot Foundが返るScreenshot
変更前
提出物があるプラクティスの場合
提出物のないプラクティスの場合
変更後
提出物があるプラクティスの場合
提出物のないプラクティスの場合
Summary by CodeRabbit
バグ修正
テスト