A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "test_helper"
|
||||
|
||||
class ChecklistEntryTest < ActiveSupport::TestCase
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "test_helper"
|
||||
|
||||
class ChecklistTest < ActiveSupport::TestCase
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "test_helper"
|
||||
|
||||
class LinkCategoryTest < ActiveSupport::TestCase
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "test_helper"
|
||||
|
||||
class LinkTest < ActiveSupport::TestCase
|
||||
|
|
|
|||
7
test/models/principle_test.rb
Normal file
7
test/models/principle_test.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
require "test_helper"
|
||||
|
||||
class PrincipleTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
|
|
@ -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
|
||||
|
|
|
|||
7
test/models/standard_test.rb
Normal file
7
test/models/standard_test.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
require "test_helper"
|
||||
|
||||
class StandardTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "test_helper"
|
||||
|
||||
class SuccessCriterionTest < ActiveSupport::TestCase
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue