Permalink
Browse files

Prepare for failing flashtest

  • Loading branch information...
1 parent 8058974 commit b8b1c1dcdb31452b437e3a53b3c0fa76a70f625b @Getty Getty committed Jul 6, 2012
Showing with 19 additions and 0 deletions.
  1. 0 bin/ddg_attribution
  2. +6 −0 t/50-spice.t
  3. +13 −0 t/lib/DDGTest/Spice/Flashtest.pm
View
0 bin/ddg_attribution 100755 → 100644
No changes.
View
@@ -60,6 +60,7 @@ isa_ok($zci_spice,'DDG::ZeroClickInfo::Spice');
is($zci_spice->call,'/js/spice/some_thing/a%23%23a/b%20%20b/c%23%3F%3Fc','Checking for proper call path');
ddg_spice_test(
+ # DDGTest::Spice::Flashtest
[qw(
DDGTest::Spice::Data
)],
@@ -69,6 +70,11 @@ ddg_spice_test(
call_type => 'include',
caller => 'DDGTest::Spice::Data'
),
+ # 'flash version' => test_spice(
+ # '/js/spice/flashtest',
+ # call_type => 'self',
+ # caller => 'DDGTest::Spice::Flashtest'
+ # ),
);
done_testing;
@@ -0,0 +1,13 @@
+package DDGTest::Spice::Flashtest;
+
+use DDG::Spice;
+
+triggers startend => "flash";
+
+spice call_type => 'self';
+
+handle query_lc => sub {
+ return $_ eq 'flash version' ? call : ();
+};
+
+1;

0 comments on commit b8b1c1d

Please sign in to comment.