From 26b54982e48a3137a6ae1dd2edec8512f7e71335 Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 13 Jun 2013 22:13:32 -0400 Subject: [PATCH] fix test The reason the "m" abbreviation wasn't used for the age metatag is because it could mean minutes ("mi") or months ("mo"). --- test/unit/post_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/unit/post_test.rb b/test/unit/post_test.rb index dc7b83d63..a6143ff22 100644 --- a/test/unit/post_test.rb +++ b/test/unit/post_test.rb @@ -851,24 +851,24 @@ class PostTest < ActiveSupport::TestCase end context "Searching:" do - should "return posts for the age:<1m tag" do + should "return posts for the age:<1minute tag" do post1 = FactoryGirl.create(:post, :tag_string => "aaa") - count = Post.tag_match("age:<1m").count + count = Post.tag_match("age:<1minute").count assert_equal(1, count) end - should "return posts for the age:<1m tag when the user is in Pacific time zone" do + should "return posts for the age:<1minute tag when the user is in Pacific time zone" do post1 = FactoryGirl.create(:post, :tag_string => "aaa") Time.zone = "Pacific Time (US & Canada)" - count = Post.tag_match("age:<1m").count + count = Post.tag_match("age:<1minute").count assert_equal(1, count) Time.zone = "Eastern Time (US & Canada)" end - should "return posts for the age:<1m tag when the user is in Tokyo time zone" do + should "return posts for the age:<1minute tag when the user is in Tokyo time zone" do post1 = FactoryGirl.create(:post, :tag_string => "aaa") Time.zone = "Asia/Tokyo" - count = Post.tag_match("age:<1m").count + count = Post.tag_match("age:<1minute").count assert_equal(1, count) Time.zone = "Eastern Time (US & Canada)" end