jupiterjs/jquerymx — Issue #97: bug in fixtures with two position value for wildcard in templated url
Author: joris77
Created: 2011-11-28 21:41:21+00:00
State: open

I have this fixture:

$.fixture("POST /days/{dayId}/time_slots.json", function(original, settings, headers) {
alert(days[original.data.dayId].date)
})

when the url posted is: /days/17/time_slots.json or /days/27/time_slots.json

original.data.dayId evaluates to 7

I can trace it back to the fixture.js line 430. In the _getData function over there the res variable also displays 7 as the result.

Javascriptmvc version: 3.2
Browser: Firefox