tests: fix broken tests.

This commit is contained in:
evazion
2022-08-23 18:31:24 -05:00
parent 09dfab1f0d
commit e3af738371
16 changed files with 100 additions and 152 deletions

View File

@@ -1,6 +1,6 @@
require 'test_helper'
class FavoriteTest < ActiveSupport::TestCase
class FavoriteGroupTest < ActiveSupport::TestCase
def setup
@fav_group = create(:favorite_group)
end
@@ -22,7 +22,7 @@ class FavoriteTest < ActiveSupport::TestCase
context "expunging a post" do
should "remove it from all favorite groups" do
@post = FactoryBot.create(:post)
@post = create(:post_with_file, filename: "test.jpg")
@fav_group.add(@post)
assert_equal([@post.id], @fav_group.post_ids)