From 0c63aa61e7afe637d3b4755b40f0a0ef08c826d8 Mon Sep 17 00:00:00 2001 From: Joris Wijlens Date: Thu, 1 Dec 2011 23:07:42 +0100 Subject: [PATCH] test for issue 97 wildcard with position value --- dom/fixture/fixture_test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dom/fixture/fixture_test.js b/dom/fixture/fixture_test.js index c3fe5902..9c87b7d3 100644 --- a/dom/fixture/fixture_test.js +++ b/dom/fixture/fixture_test.js @@ -1,3 +1,4 @@ + steal("jquery/dom/fixture", "jquery/model",'funcunit/qunit',function(){ module("jquery/dom/fixture"); @@ -188,6 +189,11 @@ test("_getData", function(){ deepEqual(data, {}, "gets data"); }) +test("_getData with two position wildcard", function(){ + var data = $.fixture._getData("/days/{id}/time_slots.json", "/days/17/time_slots.json"); + equals(data.id, 17, "gets data"); +}); + test("_compare", function(){ var same = $.Object.same( {url : "/thingers/5"},