diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-17 12:43:28 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-17 12:43:28 +0100 |
commit | dd1cefa2d7751d3c7fb8ca4f3cb2f35efc2a8fd5 (patch) | |
tree | b24a9b1c504ef4d99e37bd395bce23984bbb7b1e /t/app/model/problem.t | |
parent | 53f7de1a79e5e8cb11a772d8f80dad23e23dd49f (diff) | |
parent | 1bdef6cf43c1c6bd8f58a2533468db09b098213c (diff) |
Merge branch 'duplicate-reverse'
Diffstat (limited to 't/app/model/problem.t')
-rw-r--r-- | t/app/model/problem.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/app/model/problem.t b/t/app/model/problem.t index 718b980b0..b0719d6a6 100644 --- a/t/app/model/problem.t +++ b/t/app/model/problem.t @@ -776,6 +776,8 @@ subtest 'check duplicate reports' => sub { $problem1->set_extra_metadata(duplicate_of => $problem2->id); $problem1->state('duplicate'); $problem1->update; + $problem2->set_extra_metadata(duplicates => [ $problem1->id ]); + $problem2->update; is $problem1->duplicate_of->title, $problem2->title, 'problem1 returns correct problem from duplicate_of'; is scalar @{ $problem2->duplicates }, 1, 'problem2 has correct number of duplicates'; |