Find tag by lowercase name in tag test

The sqlite3 database is case sensitive, so searching for 'UPPER' when
the tag name has been changed to 'upper' before saving it will result in
an empty tag.
This commit is contained in:
Katrina Owen 2013-02-17 19:41:28 -07:00
parent 6fa70db39e
commit f28ff70f77

View file

@ -30,7 +30,7 @@ class TagTest < ActiveSupport::TestCase
tag = Tag.find_or_create_by_name("UPPER")
assert !tag.new_record?
upper = Tag.find_by_name("UPPER")
upper = Tag.find_by_name("upper")
assert_not_nil upper
assert upper.name == "upper"
end