diff options
author | Struan Donald <struan@exo.org.uk> | 2012-08-22 10:57:10 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-08-22 10:57:10 +0100 |
commit | 2e0a4e8ec45579e4e5c9cf8aa123d5ab215b9703 (patch) | |
tree | c13e3c59b686e01460dc7960547f7e9c53c288bd /t/app/controller/report_display.t | |
parent | b99c5ff97b29a27eeba52ed24385ac30388e875c (diff) | |
parent | 88a7d38dffa3dabdf0f85573b254cea9c8ab232b (diff) |
Merge remote-tracking branch 'origin/master' into fmb-read-only
Conflicts:
.gitignore
bin/make_css
conf/general.yml-example
perllib/FixMyStreet/App/Controller/Council.pm
perllib/FixMyStreet/App/Controller/Report/New.pm
perllib/FixMyStreet/Cobrand/Default.pm
templates/web/default/around/around_index.html
templates/web/default/index.html
templates/web/emptyhomes/index.html
templates/web/fixmystreet/around/around_index.html
templates/web/fixmystreet/index.html
web/fixmystreet_app_cgi.cgi
web/fixmystreet_app_fastcgi.cgi
Diffstat (limited to 't/app/controller/report_display.t')
-rw-r--r-- | t/app/controller/report_display.t | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/t/app/controller/report_display.t b/t/app/controller/report_display.t index 548580fe1..6c2733e36 100644 --- a/t/app/controller/report_display.t +++ b/t/app/controller/report_display.t @@ -209,7 +209,7 @@ for my $test ( ), state => 'confirmed', banner_id => 'unknown', - banner_text => 'This problem is old and of unknown status.', + banner_text => 'unknown', fixed => 0 }, { @@ -224,7 +224,7 @@ for my $test ( ), state => 'fixed', banner_id => 'fixed', - banner_text => 'This problem has been fixed.', + banner_text => 'fixed', fixed => 1 }, { @@ -232,7 +232,7 @@ for my $test ( date => DateTime->now, state => 'fixed', banner_id => 'fixed', - banner_text => 'This problem has been fixed.', + banner_text => 'fixed', fixed => 1 }, { @@ -240,7 +240,7 @@ for my $test ( date => DateTime->now, state => 'fixed - user', banner_id => 'fixed', - banner_text => 'This problem has been fixed.', + banner_text => 'fixed', fixed => 1 }, { @@ -248,7 +248,7 @@ for my $test ( date => DateTime->now, state => 'fixed - council', banner_id => 'fixed', - banner_text => 'This problem has been fixed.', + banner_text => 'fixed', fixed => 1 }, { @@ -256,7 +256,7 @@ for my $test ( date => DateTime->now, state => 'closed', banner_id => 'closed', - banner_text => 'This problem has been closed.', + banner_text => 'closed', fixed => 0 }, { @@ -264,7 +264,7 @@ for my $test ( date => DateTime->now, state => 'investigating', banner_id => 'progress', - banner_text => 'This problem is in progress.', + banner_text => 'progress', fixed => 0 }, { @@ -272,7 +272,7 @@ for my $test ( date => DateTime->now, state => 'planned', banner_id => 'progress', - banner_text => 'This problem is in progress.', + banner_text => 'progress', fixed => 0 }, { @@ -280,7 +280,7 @@ for my $test ( date => DateTime->now, state => 'in progress', banner_id => 'progress', - banner_text => 'This problem is in progress.', + banner_text => 'progress', fixed => 0 }, ) { @@ -299,7 +299,11 @@ for my $test ( } is $banner->{id}, $test->{banner_id}, 'banner id'; - is $banner->{text}, $test->{banner_text}, 'banner text'; + if ($test->{banner_text}) { + ok $banner->{text} =~ /$test->{banner_text}/i, 'banner text'; + } else { + is $banner->{text}, $test->{banner_text}, 'banner text'; + } my $update_form = $mech->form_name( 'updateForm' ); if ( $test->{fixed} ) { |