mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 14:58:50 +01:00
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:
parent
6fa70db39e
commit
f28ff70f77
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue