From dbf4ec971695b6b4a9997fb15f02b3e2b55710d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Fuentes?= Date: Thu, 8 Feb 2018 10:17:29 +0100 Subject: [PATCH] changed test, fixed variable instead os us the let option --- spec/features/comments/legislation_annotations_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/features/comments/legislation_annotations_spec.rb b/spec/features/comments/legislation_annotations_spec.rb index 96161c377..637cf1b1c 100644 --- a/spec/features/comments/legislation_annotations_spec.rb +++ b/spec/features/comments/legislation_annotations_spec.rb @@ -137,7 +137,8 @@ feature 'Commenting legislation questions' do end scenario 'Turns links into html links' do - create :comment, commentable: legislation_annotation, body: 'Built with http://rubyonrails.org/' + legislation_annotation = create :legislation_annotation, author: user + legislation_annotation.comments << create(:comment, body: 'Built with http://rubyonrails.org/') visit legislation_process_draft_version_annotation_path(legislation_annotation.draft_version.process, legislation_annotation.draft_version,