From 3e0f6c476f74cbffd8c8489183bbf0f0fb748465 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Tue, 25 Jun 2019 09:01:37 +1200 Subject: [PATCH] set body on post in spec, so we know what to look for and we don't trip on whitespace changes --- spec/views/comments/new.html.haml_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/views/comments/new.html.haml_spec.rb b/spec/views/comments/new.html.haml_spec.rb index 5892fce0b..c2d7b7e86 100644 --- a/spec/views/comments/new.html.haml_spec.rb +++ b/spec/views/comments/new.html.haml_spec.rb @@ -3,7 +3,7 @@ require 'rails_helper' describe "comments/new" do before do controller.stub(:current_user) { nil } - @post = FactoryBot.create(:post) + @post = FactoryBot.create(:post, body: 'tena koutou ki te ao') @comment = FactoryBot.create(:comment, post: @post) assign(:comment, @comment) assign(:comments, [@comment])