Skip to content

Commit

Permalink
省略しておく意味もないので、ちゃんと書く
Browse files Browse the repository at this point in the history
  • Loading branch information
masyuko0222 committed Feb 26, 2024
1 parent 0812dd4 commit 1097460
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/models/article_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class ArticleTest < ActiveSupport::TestCase
end

test '#published?' do
public = articles(:article1)
wip = articles(:article3)
public_article = articles(:article1)
wip_article = articles(:article3)

assert public.published?
assert_not wip.published?
assert public_article.published?
assert_not wip_article.published?
end

test 'articles directly published without WIP have value of the published_at' do
Expand Down

0 comments on commit 1097460

Please sign in to comment.