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
teaspoon-qunit-1.20.0 test/javascripts/qunit/fixture_test.coffee
teaspoon-qunit-1.19.0 test/javascripts/qunit/fixture_test.coffee
teaspoon-qunit-1.18.0 test/javascripts/qunit/fixture_test.coffee
teaspoon-0.9.1 test/javascripts/teaspoon/qunit/fixture_test.coffee
teaspoon-0.9.0 test/javascripts/teaspoon/qunit/fixture_test.coffee
teaspoon-0.8.0 test/javascripts/teaspoon/qunit/fixture_test.coffee
teaspoon-0.7.9 test/javascripts/teaspoon/qunit/fixture_test.coffee
teaspoon-0.7.8 test/javascripts/teaspoon/qunit/fixture_test.coffee
teaspoon-0.7.7 test/javascripts/teaspoon/qunit/fixture_test.coffee
teaspoon-0.7.6 test/javascripts/teaspoon/qunit/fixture_test.coffee
teaspoon-0.7.5 test/javascripts/teaspoon/qunit/fixture_test.coffee
teaspoon-0.7.4 test/javascripts/teaspoon/qunit/fixture_test.coffee
teabag-0.7.3 test/javascripts/teabag/qunit/fixture_test.coffee
teabag-0.7.2 test/javascripts/teabag/qunit/fixture_test.coffee
teabag-0.7.1 test/javascripts/teabag/qunit/fixture_test.coffee
teabag-0.7.0 test/javascripts/teabag/qunit/fixture_test.coffee
teabag-0.6.0 test/javascripts/teabag/qunit/fixture_test.coffee
teabag-0.5.5 test/javascripts/teabag/qunit/fixture_test.coffee
teabag-0.5.4 test/javascripts/teabag/qunit/fixture_test.coffee
teabag-0.5.3 test/javascripts/teabag/qunit/fixture_test.coffee