From cbe452b78f9966a6200a57e79cbeecae3c1acdfd Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 21 Jun 2011 19:19:47 +0100 Subject: use the configured host --- t/app/controller/admin.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't/app/controller/admin.t') diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index 60cbd6937..b92041830 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -133,10 +133,11 @@ subtest 'check summary counts' => sub { ok $mech->host('fixmystreet.com'); }; +my $host = FixMyStreet->config('OPTION_BASE_URL'); $mech->get_ok('/admin/council_contacts/2650'); $mech->content_contains('Aberdeen City Council'); $mech->content_contains('AB15 8RN'); -$mech->content_contains('street.com/around'); +$mech->content_contains("$host/around"); subtest 'check contact creation' => sub { my $contact = FixMyStreet::App->model('DB::Contact')->search( -- cgit v1.2.3