From fab4e816699e0adbf30a138db81658e5091c145f Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 19 Nov 2013 10:30:04 -0500 Subject: [PATCH] #2030: add test --- test/unit/post_test.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/unit/post_test.rb b/test/unit/post_test.rb index af0b48343..5db0d50d5 100644 --- a/test/unit/post_test.rb +++ b/test/unit/post_test.rb @@ -449,6 +449,19 @@ class PostTest < ActiveSupport::TestCase end end + context "using a tag prefix on an aliased tag" do + setup do + FactoryGirl.create(:tag_alias, :antecedent_name => "abc", :consequent_name => "xyz") + @post = Post.find(@post.id) + @post.update_attribute(:tag_string, "art:abc") + @post.reload + end + + should "convert the tag to its normalized version" do + assert_equal("xyz", @post.tag_string) + end + end + context "tagged with a metatag" do context "for a parent" do setup do