Fix #5150: rating: metatag doesn't work on betabooru upload page.

This commit is contained in:
evazion
2022-04-30 20:22:26 -05:00
parent ccd0dde081
commit fdc1130aea
2 changed files with 9 additions and 1 deletions

View File

@@ -745,6 +745,14 @@ class PostTest < ActiveSupport::TestCase
assert_equal("q", @post.rating)
end
end
context "when a post is created" do
should "set the rating" do
@post = create(:post, tag_string: "tagme rating:e", rating: nil)
assert_equal("e", @post.rating)
end
end
end
context "for a fav" do