Sha256: e4f389e63c265e8549affb45b5ecbbbcf1a1b457a7c1214e625759271b044d94
Contents?: true
Size: 982 Bytes
Versions: 11
Compression:
Stored size: 982 Bytes
Contents
# require "application_system_test_case" # class CommentsTest < ApplicationSystemTestCase # setup do # @comment = comments(:one) # end # test "visiting the index" do # visit comments_url # assert_selector "h1", text: "Comments" # end # test "creating a Comment" do # visit comments_url # click_on "New Comment" # fill_in "Content", with: @comment.content # click_on "Create Comment" # assert_text "Comment was successfully created" # click_on "Back" # end # test "updating a Comment" do # visit comments_url # click_on "Edit", match: :first # fill_in "Content", with: @comment.content # click_on "Update Comment" # assert_text "Comment was successfully updated" # click_on "Back" # end # test "destroying a Comment" do # visit comments_url # page.accept_confirm do # click_on "Destroy", match: :first # end # assert_text "Comment was successfully destroyed" # end # end
Version data entries
11 entries across 11 versions & 1 rubygems