wip: wcag structure
This commit is contained in:
parent
4c31dbbed0
commit
4dd445be57
48 changed files with 461 additions and 137 deletions
|
|
@ -8,7 +8,7 @@ class ChecksControllerTest < ::ControllerTest
|
|||
end
|
||||
|
||||
setup do
|
||||
@principle = principles(:one)
|
||||
@guideline = guidelines(:one)
|
||||
@check = checks(:deletable)
|
||||
User.create!(email_address: "test@example.com", password: "password")
|
||||
login("test@example.com", "password")
|
||||
|
|
@ -27,7 +27,7 @@ class ChecksControllerTest < ::ControllerTest
|
|||
test "should create check" do
|
||||
assert_difference("Check.count") do
|
||||
post checks_url,
|
||||
params: { check: { principle_id: @principle.id, number: Check.maximum(:number) + 1, level: @check.level, name_de: @check.name_de, position: @check.position,
|
||||
params: { check: { guideline_id: @guideline.id, number: Check.maximum(:number) + 1, level: @check.level, name_de: @check.name_de, position: @check.position,
|
||||
criterion_de: @check.criterion_de } }
|
||||
end
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ class ChecksControllerTest < ::ControllerTest
|
|||
|
||||
test "should update check" do
|
||||
patch check_url(@check),
|
||||
params: { check: { principle_id: @principle.id, level: @check.level, name_de: @check.t_name, position: @check.position,
|
||||
params: { check: { guideline_id: @guideline.id, level: @check.level, name_de: @check.t_name, position: @check.position,
|
||||
criterion_de: @check.criterion_de } }
|
||||
assert_redirected_to check_url(@check)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue