aboutsummaryrefslogtreecommitdiffstats
path: root/t/fakeq.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-07 17:11:50 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-07 17:11:50 +0100
commit891428159dd27e5648676b7b9b51c5a2fe2f83ed (patch)
tree1aa9862e3ab0cd981f0979ce1b29610e4b967657 /t/fakeq.t
parent0f7de6563d4c96fa1ec9c429cca7e42259e25422 (diff)
Remove fake_q and most of now-unused Page.pm.
Diffstat (limited to 't/fakeq.t')
-rw-r--r--t/fakeq.t24
1 files changed, 0 insertions, 24 deletions
diff --git a/t/fakeq.t b/t/fakeq.t
deleted file mode 100644
index ae7c6d98b..000000000
--- a/t/fakeq.t
+++ /dev/null
@@ -1,24 +0,0 @@
-use strict;
-use warnings;
-
-use Test::More;
-
-use_ok 'FixMyStreet::FakeQ';
-
-# create a new object and check that it returns what we want.
-my $fake_q = FixMyStreet::FakeQ->new(
- {
- params => { foo => 'bar' }, #
- site => 'boing'
- }
-);
-
-is $fake_q->{site}, 'boing', 'got site verbatim';
-is $fake_q->param('foo'), 'bar', 'got set param';
-is $fake_q->param('not_set'), undef, 'got undef for not set param';
-
-# check that setting site to 'default' gets translated to fixmystreet
-is FixMyStreet::FakeQ->new( { site => 'default' } )->{site}, 'fixmystreet',
- "'default' site becomes 'fixmystreet'";
-
-done_testing();