Skip to content

Commit

Permalink
Merge pull request #7293 from fjordllc/bug/bookmark_decorator_test
Browse files Browse the repository at this point in the history
BookmarkDecoratorTestのバグを修正
  • Loading branch information
komagata authored Jan 31, 2024
2 parents 32b23a1 + 2f69f46 commit fab03b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/decorators/bookmark_decorator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

class BookmarkDecoratorTest < ActiveDecoratorTestCase
test '#reported_on_or_created_at' do
assert_equal bookmarks(:bookmark31).bookmarkable.created_at, decorate(bookmark31).reported_on_or_created_at
assert_equal bookmarks(:bookmark27).bookmarkable.reported_on, decorate(bookmark27).reported_on_or_created_at
bookmark31 = decorate(bookmarks(:bookmark31))
bookmark27 = decorate(bookmarks(:bookmark27))
assert_equal bookmark31.bookmarkable.created_at, bookmark31.reported_on_or_created_at
assert_equal bookmark27.bookmarkable.reported_on, bookmark27.reported_on_or_created_at
end
end

0 comments on commit fab03b3

Please sign in to comment.