added test

This commit is contained in:
rkaldung 2014-09-08 21:15:39 +02:00
parent 675be2e5ab
commit 6fbc3f69f7

View file

@ -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| tests.each { |test|
success = Tag.tag_add( test[:tag_add] ) success = Tag.tag_add( test[:tag_add] )