From 980e924de20e6dd68d74c01e03a7895dbe7fb8ef Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 18 Nov 2012 12:09:37 +0100 Subject: [PATCH] Improved tests. --- app/models/tag.rb | 2 ++ test/unit/tag_test.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/tag.rb b/app/models/tag.rb index 242f4fccd..5f848236f 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -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 ] diff --git a/test/unit/tag_test.rb b/test/unit/tag_test.rb index df870f5c2..e9dfa346e 100644 --- a/test/unit/tag_test.rb +++ b/test/unit/tag_test.rb @@ -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