Skip to content

Commit

Permalink
[WIP][ci skip]Create feature
Browse files Browse the repository at this point in the history
  • Loading branch information
yucao24hours committed Sep 5, 2016
1 parent 9d98e54 commit e72987d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/features/comment_creation_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require 'test_helper'

feature 'CommentCreation' do
scenario 'User create comment to post' do
stub_authentication_with 'alice'

visit post_path(post)

body = 'Lorem ipsum dolor sit amet'

fill_in 'comment_body', with: body
click_button 'create comment'

within '.comment__body' do
expect(page).must_have_content 'Lorem ipsum dolor sit amet'
end
end
end

0 comments on commit e72987d

Please sign in to comment.