From a7178b6da7589fe1cf763a5233e576c19ae1f7f1 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 28 May 2017 14:13:33 +1200 Subject: [PATCH] changed spec to expect responder gem flash --- spec/features/comments/commenting_a_comment_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/comments/commenting_a_comment_spec.rb b/spec/features/comments/commenting_a_comment_spec.rb index 4d7c956bd..75024ffb6 100644 --- a/spec/features/comments/commenting_a_comment_spec.rb +++ b/spec/features/comments/commenting_a_comment_spec.rb @@ -12,7 +12,7 @@ feature 'Commenting on a post' do scenario "creating a comment" do fill_in "comment_body", with: "This is a sample test for comment" click_button "Post comment" - expect(page).to have_content "Comment was successfully created" + expect(page).to have_content "comment was successfully created." expect(page).to have_content "Posted by" end @@ -26,7 +26,7 @@ feature 'Commenting on a post' do scenario "saving edit" do fill_in "comment_body", with: "Testing edit for comment" click_button "Post comment" - expect(page).to have_content "Comment was successfully updated" + expect(page).to have_content "comment was successfully updated." expect(page).to have_content "edited at" end end