fixture.preload("fixture.html", "fixture.json") # make the actual requests for the files
module "Using fixtures",
setup: ->
fixture.set("
Another Title
") # create some markup manually
@fixtures = fixture.load("fixture.html", "fixture.json", true) # append these fixtures
test "loads fixtures", ->
ok(document.getElementById("fixture_view").tagName == "DIV", "is in the dom")
ok(@fixtures[0] == fixture.el, "has return values for the el") # the element is available as a return value and through fixture.el
ok(@fixtures[1].title == fixture.json[0].title, "has return values for json") # the json for json fixtures is returned, and available in fixture.json