Sha256: 0dacfe6faed0524e683e2d9c7ece530992ba0bb2efdff8f24a9038c31f4ee060
Contents?: true
Size: 949 Bytes
Versions: 7
Compression:
Stored size: 949 Bytes
Contents
require "application_system_test_case" class DirectoriesTest < ApplicationSystemTestCase setup do @directory = directories(:one) end test "visiting the index" do visit directories_url assert_selector "h1", text: "Directories" end test "creating a Directory" do visit directories_url click_on "New Directory" fill_in "Path", with: @directory.path click_on "Create Directory" assert_text "Directory was successfully created" click_on "Back" end test "updating a Directory" do visit directories_url click_on "Edit", match: :first fill_in "Path", with: @directory.path click_on "Update Directory" assert_text "Directory was successfully updated" click_on "Back" end test "destroying a Directory" do visit directories_url page.accept_confirm do click_on "Destroy", match: :first end assert_text "Directory was successfully destroyed" end end
Version data entries
7 entries across 7 versions & 2 rubygems