diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-18 20:21:33 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-18 20:21:33 +0100 |
commit | bbe8fb87daab16ca285521658bec1dcb2fbdf4d1 (patch) | |
tree | 3ca6de0720457ed9bd54d5665c9abac19d64df1e /t | |
parent | 9d8ad13ed231671f2ece5d81c5ce928807d0ba5f (diff) | |
parent | d1c90d15c2f9fd7ecb63a34c835d2c2007f290fe (diff) |
Merge branch 'speed-up-reports'
Diffstat (limited to 't')
-rw-r--r-- | t/app/model/user_planned_report.t | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/app/model/user_planned_report.t b/t/app/model/user_planned_report.t index f2fe79cc2..e51552e5c 100644 --- a/t/app/model/user_planned_report.t +++ b/t/app/model/user_planned_report.t @@ -14,6 +14,7 @@ is $user->planned_reports, 0; $user->add_to_planned_reports($problem); is $user->active_planned_reports, 1; is $user->planned_reports, 1; +is $user->is_planned_report($problem), 1; $user->add_to_planned_reports($problem); is $user->active_planned_reports, 1; @@ -22,10 +23,14 @@ is $user->planned_reports, 1; $user->remove_from_planned_reports($problem); is $user->active_planned_reports, 0; is $user->planned_reports, 1; +$user->discard_changes; +is $user->is_planned_report($problem), 0; $user->add_to_planned_reports($problem); is $user->active_planned_reports, 1; is $user->planned_reports, 2; +$user->discard_changes; +is $user->is_planned_report($problem), 1; $user2->add_to_planned_reports($problem); is $user->active_planned_reports, 0; |