A lot :)
Some checks failed
/ Run tests (push) Successful in 8m56s
/ Run system tests (push) Failing after 1h0m48s
/ Build, push and deploy image (push) Successful in 7m47s

This commit is contained in:
david 2024-09-05 22:54:38 +02:00
parent aad67af0d1
commit 63fc206c27
153 changed files with 2043 additions and 646 deletions

View file

@ -1,22 +1,24 @@
require 'test_helper'
# frozen_string_literal: true
require "test_helper"
class ChecklistEntriesControllerTest < ActionDispatch::IntegrationTest
setup do
@checklist_entry = checklist_entries(:one)
end
test 'should get index' do
test "should get index" do
get checklist_entries_url
assert_response :success
end
test 'should get new' do
test "should get new" do
get new_checklist_entry_url(checklist_id: @checklist_entry.checklist_id)
assert_response :success
end
test 'should create checklist_entry' do
assert_difference('ChecklistEntry.count') do
test "should create checklist_entry" do
assert_difference("ChecklistEntry.count") do
post checklist_entries_url,
params: { checklist_entry: { check_id: @checklist_entry.check_id, checklist_id: @checklist_entry.checklist_id,
position: @checklist_entry.position } }
@ -25,25 +27,25 @@ class ChecklistEntriesControllerTest < ActionDispatch::IntegrationTest
assert_redirected_to checklist_url(ChecklistEntry.last.checklist)
end
test 'should show checklist_entry' do
test "should show checklist_entry" do
get checklist_entry_url(@checklist_entry)
assert_response :success
end
test 'should get edit' do
test "should get edit" do
get edit_checklist_entry_url(@checklist_entry)
assert_response :success
end
test 'should update checklist_entry' do
test "should update checklist_entry" do
patch checklist_entry_url(@checklist_entry),
params: { checklist_entry: { check_id: @checklist_entry.check_id, checklist_id: @checklist_entry.checklist_id,
position: @checklist_entry.position } }
assert_redirected_to checklist_url(@checklist_entry.checklist)
end
test 'should destroy checklist_entry' do
assert_difference('ChecklistEntry.count', -1) do
test "should destroy checklist_entry" do
assert_difference("ChecklistEntry.count", -1) do
delete checklist_entry_url(@checklist_entry)
end