Merge pull request #2734 from evazion/fix-negated-aliases
Resolve aliases when removing negated tags (fix #2730)
This commit is contained in:
@@ -740,6 +740,13 @@ class PostTest < ActiveSupport::TestCase
|
||||
@post.reload
|
||||
assert_equal("aaa ccc", @post.tag_string)
|
||||
end
|
||||
|
||||
should "resolve aliases" do
|
||||
FactoryGirl.create(:tag_alias, :antecedent_name => "/tr", :consequent_name => "translation_request")
|
||||
@post.update(:tag_string => "aaa translation_request -/tr")
|
||||
|
||||
assert_equal("aaa", @post.tag_string)
|
||||
end
|
||||
end
|
||||
|
||||
should "have an array representation of its tags" do
|
||||
|
||||
Reference in New Issue
Block a user