mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 13:38:24 -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:
@@ -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