mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-20 06:01:32 -04:00
set body on post in spec, so we know what to look for
and we don't trip on whitespace changes
This commit is contained in:
1 parent
191a3940d7
commit
3e0f6c476f
1 file changed
+1
-1
@@ -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])
|
||||
|
||||
Reference in new issue
Block a user