initial commit

This commit is contained in:
Stefan Tollkühn
2025-07-21 12:14:42 +02:00
parent a77fc87832
commit 3735122750
156 changed files with 3862 additions and 1 deletions

View File

@@ -0,0 +1,41 @@
require "application_system_test_case"
class ProjectsTest < ApplicationSystemTestCase
setup do
@project = projects(:one)
end
test "visiting the index" do
visit projects_url
assert_selector "h1", text: "Projects"
end
test "should create project" do
visit projects_url
click_on "New project"
fill_in "Name", with: @project.name
click_on "Create Project"
assert_text "Project was successfully created"
click_on "Back"
end
test "should update Project" do
visit project_url(@project)
click_on "Edit this project", match: :first
fill_in "Name", with: @project.name
click_on "Update Project"
assert_text "Project was successfully updated"
click_on "Back"
end
test "should destroy Project" do
visit project_url(@project)
click_on "Destroy this project", match: :first
assert_text "Project was successfully destroyed"
end
end