added test
This commit is contained in:
parent
675be2e5ab
commit
6fbc3f69f7
1 changed files with 17 additions and 0 deletions
|
@ -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] )
|
||||
|
|
Loading…
Reference in a new issue