Added loads

This commit is contained in:
Jeremy Caudle
2022-02-06 15:04:32 +00:00
parent 140921ce10
commit 055b79373c
42 changed files with 944 additions and 7 deletions

View File

@@ -0,0 +1,41 @@
require "application_system_test_case"
class CompaniesTest < ApplicationSystemTestCase
setup do
@company = companies(:one)
end
test "visiting the index" do
visit companies_url
assert_selector "h1", text: "Companies"
end
test "should create company" do
visit companies_url
click_on "New company"
fill_in "Name", with: @company.name
click_on "Create Company"
assert_text "Company was successfully created"
click_on "Back"
end
test "should update Company" do
visit company_url(@company)
click_on "Edit this company", match: :first
fill_in "Name", with: @company.name
click_on "Update Company"
assert_text "Company was successfully updated"
click_on "Back"
end
test "should destroy Company" do
visit company_url(@company)
click_on "Destroy this company", match: :first
assert_text "Company was successfully destroyed"
end
end