stubbed Time.now to prevent test failures

This commit is contained in:
Skud
2013-02-22 08:28:14 +11:00
parent b743fe9465
commit da5a3fb76c

View File

@@ -45,6 +45,7 @@ describe Post do
context "recent activity" do
before(:each) do
Time.stub(:now => Time.now)
@post = FactoryGirl.create(:post)
end