Improved tests.

This commit is contained in:
Martin Edenhofer 2012-11-18 12:09:37 +01:00
parent 4aae8cb3e2
commit 980e924de2
2 changed files with 3 additions and 1 deletions

View file

@ -75,6 +75,8 @@ class Tag < ApplicationModel
def self.tag_item_lookup( name )
name = name.downcase
# use cache
return @@cache_item[ name ] if @@cache_item[ name ]

View file

@ -59,7 +59,7 @@ class TagTest < ActiveSupport::TestCase
# test 4
{
:tag_add => {
:item => 'tagöäüß2',
:item => 'Tagöäüß2',
:object => 'Object2',
:o_id => 123,
:created_by_id => 1