mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-18 14:48:24 -05:00
changed spec to expect responder gem flash
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user