Skip to content

Commit

Permalink
エディタを登録していない場合はnilをチェックするassertionを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
88-99 committed Mar 30, 2024
1 parent e7d3863 commit d5fa536
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/decorators/user_decorator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class UserDecoratorTest < ActiveDecoratorTestCase
@admin_mentor_user.editor = 99
@student_user.editor = 0

assert_equal @japanese_user.editor, nil
assert_equal @admin_mentor_user.editor_or_other_editor, 'textbringer'
assert_equal @student_user.editor_or_other_editor, 'VSCode'
end
Expand Down

0 comments on commit d5fa536

Please sign in to comment.