aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-08-19 15:55:41 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-08-19 15:55:41 +0100
commit8dfdbf84b57d8bbc179dcb895d6eb08c61fdef59 (patch)
tree4c463f153d69290e4850cbb71c016066e5ed5879 /t/cobrand
parent0784bdae637e3d0ca20dc3d66ec50c5d68e489ec (diff)
parentb812f8526525c0f38d72bdc469ddc08b376854d2 (diff)
Merge branch 'bodies_str-factoring'
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/two_tier.t17
1 files changed, 8 insertions, 9 deletions
diff --git a/t/cobrand/two_tier.t b/t/cobrand/two_tier.t
index ad664aabd..b3d6ca7db 100644
--- a/t/cobrand/two_tier.t
+++ b/t/cobrand/two_tier.t
@@ -6,11 +6,11 @@ use FixMyStreet;
use FixMyStreet::Cobrand;
my @cobrands = (
- [ hart => '%2333%' ],
- [ oxfordshire => '%2237%' ],
- [ eastsussex => '%2224%' ],
- [ stevenage => '%2347%' ],
- [ warwickshire => '%2243%' ],
+ [ hart => 2333 ],
+ [ oxfordshire => 2237 ],
+ [ eastsussex => 2224 ],
+ [ stevenage => 2347 ],
+ [ warwickshire => 2243 ],
);
FixMyStreet::override_config {
@@ -18,11 +18,10 @@ FixMyStreet::override_config {
}, sub {
for my $c (@cobrands) {
- my ($m, $like) = @$c;
+ my ($m, $id) = @$c;
my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($m);
- my $problems_clause = $cobrand->problems_clause;
- is_deeply $problems_clause,
- { bodies_str => { like => $like } }, "problems_clause for $m";
+ my $body_restriction = $cobrand->body_restriction;
+ is $body_restriction, $id, "body_restriction for $m";
}
};