Skip to content

Commit

Permalink
others_editor_checked?メソッドのテストを実装
Browse files Browse the repository at this point in the history
  • Loading branch information
88-99 committed Feb 28, 2024
1 parent 31014e3 commit 2bd3cca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/decorators/user_decorator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,13 @@ class UserDecoratorTest < ActiveDecoratorTestCase
assert_nil @student_user.hibernation_days
end
end

test 'others_editor_checked?' do
editors = %w[VSCode RubyMine Vim Emacs]
@admin_mentor_user.editor = 'textbringer'
@student_user.editor = editors[0]

assert @admin_mentor_user.others_editor_checked?(editors)
assert_not @student_user.others_editor_checked?(editors)
end
end

0 comments on commit 2bd3cca

Please sign in to comment.