Improved tests.
This commit is contained in:
parent
4aae8cb3e2
commit
980e924de2
2 changed files with 3 additions and 1 deletions
|
@ -75,6 +75,8 @@ class Tag < ApplicationModel
|
||||||
|
|
||||||
def self.tag_item_lookup( name )
|
def self.tag_item_lookup( name )
|
||||||
|
|
||||||
|
name = name.downcase
|
||||||
|
|
||||||
# use cache
|
# use cache
|
||||||
return @@cache_item[ name ] if @@cache_item[ name ]
|
return @@cache_item[ name ] if @@cache_item[ name ]
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ class TagTest < ActiveSupport::TestCase
|
||||||
# test 4
|
# test 4
|
||||||
{
|
{
|
||||||
:tag_add => {
|
:tag_add => {
|
||||||
:item => 'tagöäüß2',
|
:item => 'Tagöäüß2',
|
||||||
:object => 'Object2',
|
:object => 'Object2',
|
||||||
:o_id => 123,
|
:o_id => 123,
|
||||||
:created_by_id => 1
|
:created_by_id => 1
|
||||||
|
|
Loading…
Reference in a new issue