posts: remove set_tag_string method.

This commit is contained in:
evazion
2022-01-11 10:06:46 -06:00
parent 2e1c7ce6d3
commit 33828ec8a4
2 changed files with 5 additions and 9 deletions

View File

@@ -1049,7 +1049,7 @@ class PostTest < ActiveSupport::TestCase
should "have an array representation of its tags" do
post = FactoryBot.create(:post)
post.reload
post.set_tag_string("aaa bbb")
post.tag_string = "aaa bbb"
assert_equal(%w(aaa bbb), post.tag_array)
assert_equal(%w(tag1 tag2), post.tag_array_was)
end