diff --git a/test/unit/tag_test.rb b/test/unit/tag_test.rb index 5a8b2100f..4aa21c49e 100644 --- a/test/unit/tag_test.rb +++ b/test/unit/tag_test.rb @@ -74,6 +74,23 @@ class TagTest < ActiveSupport::TestCase }, }, + # test 5 + { + :tag_remove => { + :item => 'tag1', + :object => 'Object1', + :o_id => 123, + :created_by_id => 1 + }, + :verify => { + :object => 'Object1', + :items => { + 'tag1' => false, + 'tag2' => true, + }, + }, + }, + ] tests.each { |test| success = Tag.tag_add( test[:tag_add] )