Skip to content

Commit efd2762

Browse files
committed
[WIP][ci skip]Create feature
1 parent b667ace commit efd2762

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
end
18+
end

0 commit comments

Comments
 (0)