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 12, 2016
1 parent 36402d4 commit 4e175b0
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 4e175b0

Please sign in to comment.