We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b667ace commit efd2762Copy full SHA for efd2762
1 file changed
test/features/comment_creation_test.rb
@@ -0,0 +1,18 @@
1
+require 'test_helper'
2
+
3
+feature 'CommentCreation' do
4
+ scenario 'User create comment to post' do
5
+ stub_authentication_with 'alice'
6
7
+ visit post_path(post)
8
9
+ body = 'Lorem ipsum dolor sit amet'
10
11
+ fill_in 'comment_body', with: body
12
+ click_button 'create comment'
13
14
+ within '.comment__body' do
15
+ expect(page).must_have_content 'Lorem ipsum dolor sit amet'
16
+ end
17
18
+end
0 commit comments