Skip to content

Commit

Permalink
必読判定のテストを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
hikarook94 committed Nov 8, 2022
1 parent a4e7e59 commit 818ed67
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/decorators/book_decorator_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

require 'test_helper'

class BookDecoratorTest < ActiveSupport::TestCase
setup do
@book1 = ActiveDecorator::Decorator.instance.decorate(books(:book1))
@book2 = ActiveDecorator::Decorator.instance.decorate(books(:book2))
end

test "#must_read_for_any_practices?" do
assert_equal true, @book1.must_read_for_any_practices?
assert_equal false, @book2.must_read_for_any_practices?
end
end

0 comments on commit 818ed67

Please sign in to comment.