Fix numbers autoincrement
This commit is contained in:
parent
63590c9e92
commit
1cdf5048c3
6 changed files with 16 additions and 5 deletions
|
|
@ -21,7 +21,7 @@ class ChecksControllerTest < ActionDispatch::IntegrationTest
|
|||
test "should create check" do
|
||||
assert_difference("Check.count") do
|
||||
post checks_url,
|
||||
params: { check: { principle_id: @principle.id, level: @check.level, name_de: @check.name_de, position: @check.position,
|
||||
params: { check: { principle_id: @principle.id, number: Check.maximum(:number) + 1, level: @check.level, name_de: @check.name_de, position: @check.position,
|
||||
criterion_de: @check.criterion_de } }
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue