[Jifty-commit] jifty branch, master, updated. 1.10518-42-gf62c72e

Jifty commits jifty-commit at lists.jifty.org
Wed Aug 10 14:36:58 EDT 2011


The branch, master has been updated
       via  f62c72e32060c0e59e374ea3306f037d022f4302 (commit)
      from  f51cae781f809c45b03d3bcb44cabb775a41fafb (commit)

Summary of changes:
 t/Mapper/t/01-raw-api.t |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

- Log -----------------------------------------------------------------
commit f62c72e32060c0e59e374ea3306f037d022f4302
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Wed Aug 10 13:52:09 2011 -0400

    Test::WWW::Mechanize no longer treats content_lacks as content_unlike,
    breaking the existing tests

diff --git a/t/Mapper/t/01-raw-api.t b/t/Mapper/t/01-raw-api.t
index 1cf0790..1458479 100644
--- a/t/Mapper/t/01-raw-api.t
+++ b/t/Mapper/t/01-raw-api.t
@@ -29,62 +29,62 @@ $mech->content_like(qr/got the grail/, "Running the action produces the expected
 #### Degenerate cases
 $mech->get("$URL/index.html?J:M-foo=");
 $mech->content_like(qr/foo: &#39;&#39;/, "Nothing shows up as the empty string");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 $mech->get("$URL/index.html?J:M-foo=bar");
 $mech->content_like(qr/foo: bar/, "String sets to value");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 
 #### Flat arguments
 $mech->get("$URL/index.html?J:M-foo=A`bar");
 $mech->content_like(qr/foo: ~/, "Passing no parameter sets to undef");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 $mech->get("$URL/index.html?J:M-foo=A`bar;bar=baz");
 $mech->content_like(qr/foo: baz/, "Passing parameter sets to value");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 $mech->get("$URL/index.html?J:M-foo=A`bar;bar=baz;bar=troz");
 $mech->content_like(qr/bar: &#38;1\s*\n\s+- baz\n\s+- troz/, "Multiple parameters are list");
 $mech->content_like(qr/foo: \*1/, "Multiple parameters are to same reference");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 
 #### Action results
 $mech->get("$URL/index.html?J:M-foo=R`grail`bar");
 $mech->content_like(qr/foo: ~/, "Action doesn't exist, sets to undef");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 $mech->get("$URL/index.html?J:M-foo=R`grail`bar;J:A-grail=GetGrail");
 $mech->content_like(qr/foo: ~/, "Content name doesn't exist, sets to undef");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 $mech->get("$URL/index.html?J:M-foo=R`grail`castle;J:A-grail=GetGrail");
 $mech->content_like(qr/foo: Aaaaaargh/, "Content name exists, sets to value");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 
 #### Action arguments
 $mech->get("$URL/index.html?J:M-foo=A`bridge`bar");
 $mech->content_like(qr/foo: ~/, "Action doesn't exist, sets to undef");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 $mech->get("$URL/index.html?J:M-foo=A`bridge`bar;J:A-bridge=CrossBridge");
 $mech->content_like(qr/foo: ~/, "Argument name doesn't exist, sets to undef");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 $mech->get("$URL/index.html?J:M-foo=A`bridge`quest;J:A-bridge=CrossBridge");
 $mech->content_like(qr/foo: ~/, "Argument is valid but missing, sets to undef");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 $mech->get("$URL/index.html?J:M-foo=A`bridge`name;J:A-bridge=CrossBridge");
 $mech->content_like(qr/foo: ~/, "Argument is valid with default_value but missing, sets to undef");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 $mech->get("$URL/index.html?J:M-foo=A`bridge`quest;J:A-bridge=CrossBridge;J:A:F-quest-bridge=grail");
 $mech->content_like(qr/foo: grail/, "Argument is valid, sets to submitted value");
-$mech->content_lacks(qr/J:M-foo/, "Doesn't have mapping parameter");
+$mech->content_unlike(qr/J:M-foo/, "Doesn't have mapping parameter");
 
 1;
 

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list