Skip to content

Commit

Permalink
テストの書き方をプロジェクト全体の書き方に合わせた
Browse files Browse the repository at this point in the history
  • Loading branch information
masyuko0222 committed Mar 5, 2024
1 parent c95e7a6 commit a480d61
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/models/article_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ class ArticleTest < ActiveSupport::TestCase
end

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

assert public_article.published?
assert_not wip_article.published?
assert articles(:article1).published?
assert_not articles(:article3).published?
end

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

0 comments on commit a480d61

Please sign in to comment.