This commit is contained in:
Toks
2014-01-11 14:34:03 -05:00
parent cbe9edfa88
commit 6aedbcdc6e
3 changed files with 31 additions and 10 deletions

View File

@@ -1206,10 +1206,10 @@ class PostTest < ActiveSupport::TestCase
assert_equal(post2.id, relation.first.id)
end
should "return posts for a case sensitive source search" do
should "return posts for a case insensitive source search" do
post1 = FactoryGirl.create(:post, :source => "ABCD")
post2 = FactoryGirl.create(:post, :source => "1234")
relation = Post.tag_match("source:ABCD")
relation = Post.tag_match("source:abcd")
assert_equal(1, relation.count)
end