mock pool archive service in post test

This commit is contained in:
r888888888
2017-02-07 14:14:36 -08:00
parent 1c837aba6e
commit c01f48f18c

View File

@@ -1509,6 +1509,10 @@ class PostTest < ActiveSupport::TestCase
end
context "Searching:" do
setup do
mock_pool_archive_service!
end
should "return posts for the age:<1minute tag" do
post = FactoryGirl.create(:post)
assert_tag_match([post], "age:<1minute")