Sha256: 8f393fe9bd3b7992f7d42726d15cebaa54b53b8729440f915f66155b686800f9
Contents?: true
Size: 681 Bytes
Versions: 21
Compression:
Stored size: 681 Bytes
Contents
fixture.preload("fixture.html", "fixture.json") # make the actual requests for the files module "Using fixtures", setup: -> fixture.set("<h2>Another Title</h2>") # 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
Version data entries
21 entries across 21 versions & 3 rubygems
Version | Path |
---|---|
teabag-0.5.2 | test/javascripts/teabag/qunit/fixture_test.coffee |