reverse logic of age
This commit is contained in:
@@ -839,6 +839,12 @@ class PostTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
context "Searching:" do
|
||||
should "return posts for the age:<1m tag" do
|
||||
post1 = FactoryGirl.create(:post, :tag_string => "aaa")
|
||||
count = Post.tag_match("age:<1m").count
|
||||
assert_equal(1, count)
|
||||
end
|
||||
|
||||
should "return posts for the ' tag" do
|
||||
post1 = FactoryGirl.create(:post, :tag_string => "'")
|
||||
post2 = FactoryGirl.create(:post, :tag_string => "aaa bbb")
|
||||
|
||||
Reference in New Issue
Block a user