diff options
author | Struan Donald <struan@exo.org.uk> | 2011-08-03 09:50:05 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-08-03 09:50:05 +0100 |
commit | dbaf8d84b9cd52380a031b801370bb6a0f8e4c22 (patch) | |
tree | d1841a90f8536ca17df49e2b667b4d3a096de31e /t/app/controller/admin.t | |
parent | 9415569a17bf3044c7f3253c923f556436d48942 (diff) | |
parent | 76f39991e1caf89e12e8bb8f49ba0a99df56f3dc (diff) |
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet into open311-consumer
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r-- | t/app/controller/admin.t | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index 7f8590747..9f698c629 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -602,7 +602,7 @@ for my $test ( }, changes => { text => 'this is a twice changed update', - state => 'hidden', + state => 'confirmed', }, log_count => 7, log_entries => [qw/edit state_change state_change edit edit edit edit/], @@ -629,6 +629,9 @@ for my $test ( $update->discard_changes; is $update->$_, $test->{changes}->{$_} for grep { $_ ne 'email' } keys %{ $test->{changes} }; + if ( $test->{changes}{state} && $test->{changes}{state} eq 'confirmed' ) { + isnt $update->confirmed, undef; + } if ( $test->{user} ) { is $update->user->id, $test->{user}->id, 'update user'; |