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,8 +1,10 @@
require 'test_helper'
# frozen_string_literal: true
require "test_helper"
class CheckTest < ActiveSupport::TestCase
test 'the truth' do
skip 'Need to write Check test'
test "the truth" do
skip "Need to write Check test"
assert true
end
end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "test_helper"
class ChecklistEntryTest < ActiveSupport::TestCase

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "test_helper"
class ChecklistTest < ActiveSupport::TestCase

View file

@ -1,10 +1,12 @@
require 'test_helper'
# frozen_string_literal: true
require "test_helper"
class ElementTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
test 'level calculation' do
test "level calculation" do
skip
sc1 = success_criteria(:one)
sc2 = success_criteria(:two)
@ -13,12 +15,12 @@ class ElementTest < ActiveSupport::TestCase
sc5 = success_criteria(:one)
sc6 = success_criteria(:two)
element = elements(:one)
element.success_criteria = [sc1, sc2, sc3, sc4, sc5, sc6]
element.success_criteria.each { _1.passed! }
element.success_criteria = [ sc1, sc2, sc3, sc4, sc5, sc6 ]
element.success_criteria.each(&:passed!)
assert element.level == :A
element.success_criteria.each { _1.result = :passed }
assert element.level == 'A'
assert element.level == "A"
end
end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "test_helper"
class LinkCategoryTest < ActiveSupport::TestCase

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "test_helper"
class LinkTest < ActiveSupport::TestCase

View file

@ -0,0 +1,7 @@
require "test_helper"
class PrincipleTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View file

@ -1,7 +1,9 @@
require 'test_helper'
# frozen_string_literal: true
require "test_helper"
class ReportTest < ActiveSupport::TestCase
test 'the truth' do
test "the truth" do
assert_not Report.new.valid?
end
end

View file

@ -0,0 +1,7 @@
require "test_helper"
class StandardTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "test_helper"
class SuccessCriterionTest < ActiveSupport::TestCase