diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-13 12:44:43 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-13 12:44:43 +0100 |
commit | ae9bd9cab0b338a1f07721e7ec4a8cba68ff8f7b (patch) | |
tree | df0679adc4f459a8f3946b40d71cb484df258af1 /t/app/controller/contact.t | |
parent | 76715723f615a5858587586df395072745f9e5cb (diff) |
perltidy
Diffstat (limited to 't/app/controller/contact.t')
-rw-r--r-- | t/app/controller/contact.t | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/t/app/controller/contact.t b/t/app/controller/contact.t index d4c31bd20..9d232c8ff 100644 --- a/t/app/controller/contact.t +++ b/t/app/controller/contact.t @@ -6,10 +6,9 @@ use FixMyStreet::TestMech; my $mech = FixMyStreet::TestMech->new; - -$mech->get_ok( '/contact' ); -$mech->title_like( qr/Contact Us/ ); -$mech->content_contains( "We'd love to hear what you think about this site" ); +$mech->get_ok('/contact'); +$mech->title_like(qr/Contact Us/); +$mech->content_contains("We'd love to hear what you think about this site"); subtest 'check reporting a problem displays correctly' => sub { my $user = FixMyStreet::App->model('DB::User')->find_or_create( @@ -21,28 +20,29 @@ subtest 'check reporting a problem displays correctly' => sub { my $problem = FixMyStreet::App->model('DB::Problem')->create( { - title => 'Some problem or other', - detail => 'More detail on the problem', - postcode => 'EH99 1SP', + title => 'Some problem or other', + detail => 'More detail on the problem', + postcode => 'EH99 1SP', confirmed => '2011-05-04 10:44:28.145168', - latitude => 0, + latitude => 0, longitude => 0, - areas => 0, - used_map => 0, - name => 'Problem User', + areas => 0, + used_map => 0, + name => 'Problem User', anonymous => 0, - state => 'confirmed', - user => $user + state => 'confirmed', + user => $user } ); ok $problem, 'succesfully create a problem'; $mech->get_ok( '/contact?id=' . $problem->id ); - $mech->content_contains( 'reporting the following problem' ); - $mech->content_contains( 'Some problem or other' ); - $mech->content_contains( 'Reported by A User' ); - $mech->content_contains( 'Reported by A User at 10:44, Wednesday 4 May 2011' ); + $mech->content_contains('reporting the following problem'); + $mech->content_contains('Some problem or other'); + $mech->content_contains('Reported by A User'); + $mech->content_contains( + 'Reported by A User at 10:44, Wednesday 4 May 2011'); $problem->delete; }; |