From 0681fac4069a223e04aa1eaad6f9704dffddab62 Mon Sep 17 00:00:00 2001 From: Cesy Date: Thu, 6 Aug 2015 09:51:14 +0000 Subject: [PATCH] Correcting view test for posts --- spec/views/forums/index.html.haml_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/views/forums/index.html.haml_spec.rb b/spec/views/forums/index.html.haml_spec.rb index 93d7090a9..9e7ef6f7e 100644 --- a/spec/views/forums/index.html.haml_spec.rb +++ b/spec/views/forums/index.html.haml_spec.rb @@ -45,7 +45,7 @@ describe "forums/index" do it "displays posts" do assert_select "table" rendered.should have_content @post.subject - rendered.should have_content "less than a minute ago" + rendered.should have_content Date.today.to_s(:short) end it "displays comment count" do