Skip to content

Commit

Permalink
テストケースが旧モデル名を使っていたので直した
Browse files Browse the repository at this point in the history
  • Loading branch information
masyuko0222 committed Jul 10, 2024
1 parent a17aea1 commit 459bef0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/system/mentor/practice/submission_answer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'application_system_test_case'

class Mentor::Practices::SubmissionAnswerTest < ApplicationSystemTestCase
test 'mentor can create model answer' do
test 'mentor can create submission answer' do
practice = practices(:practice2)
practice.submission_answer = nil

Expand All @@ -15,7 +15,7 @@ class Mentor::Practices::SubmissionAnswerTest < ApplicationSystemTestCase
assert_text '模範解答内容です。'
end

test 'mentor can update model answer' do
test 'mentor can update submission answer' do
practice = practices(:practice1)

visit_with_auth edit_mentor_practice_submission_answer_path(practice), 'komagata'
Expand Down
4 changes: 2 additions & 2 deletions test/system/practice/submission_answer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ class Practice::SubmissionAnswerTest < ApplicationSystemTestCase
@practice = practices(:practice1)
end

test 'student passed practice can show model answer' do
test 'student passed practice can show submission answer' do
visit_with_auth practice_path(@practice), 'kimura'
assert find_button('修了')[:disabled]
visit practice_submission_answer_path(@practice)
assert_text '「OS X Mountain Lionをクリーンインストールする」の模範解答'
assert_text 'description...'
end

test 'student not passed practice can not show model answer' do
test 'student not passed practice can not show submission answer' do
visit_with_auth practice_path(@practice), 'kimura'
click_on '未着手'
assert find_button('未着手')[:disabled]
Expand Down

0 comments on commit 459bef0

Please sign in to comment.