diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-02-20 11:24:32 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-02-20 11:24:32 +0000 |
commit | 834d18012ab64e340d06f539fee17d34e0cf7675 (patch) | |
tree | 6478756405efd2a2c04b3bc9d490d396c9112d0f /t/app/controller/questionnaire.t | |
parent | 7b227dea1532f3e68c369d8447611349e8cb44b6 (diff) | |
parent | 25d518e794b7d95525edaa9357adec48a4172c24 (diff) |
Merge branch '972-completion-adverts'
Diffstat (limited to 't/app/controller/questionnaire.t')
-rw-r--r-- | t/app/controller/questionnaire.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/app/controller/questionnaire.t b/t/app/controller/questionnaire.t index 752dbb4cb..5938acc79 100644 --- a/t/app/controller/questionnaire.t +++ b/t/app/controller/questionnaire.t @@ -252,13 +252,13 @@ foreach my $test ( # Check the right HTML page has been returned $mech->content_like( qr/<title>[^<]*Questionnaire/m ); - $mech->content_contains( 'glad to hear it’s been fixed' ) + $mech->content_contains( 'Glad to hear' ) if $result =~ /fixed/; - $mech->content_lacks( 'glad to hear it’s been fixed' ) + $mech->content_lacks( 'Glad to hear' ) if $result !~ /fixed/; $mech->content_contains( 'get some more information about the status of your problem' ) if $result eq 'unknown'; - $mech->content_contains( "sorry to hear that" ) + $mech->content_contains( "sorry to hear" ) if $result eq 'confirmed' || $result eq 'closed'; # Check the database has the right information @@ -319,7 +319,7 @@ subtest 'Check updates are shown correctly on questionnaire page' => sub { $mech->content_contains( 'This is some update text' ); }; -for my $test ( +for my $test ( { state => 'confirmed', fixed => 0 |