Sha256: ab0d5d375332fb11dc08ff5b4912ec9c2f579ff7392ff1a7dbeec34f06c61f64

Contents?: true

Size: 1.95 KB

Versions: 1

Compression:

Stored size: 1.95 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1357882154.661856:@value"g{I"
class:EFI"BundledAsset;FI"logical_path;FI"teabag/qunit/qunit_test.js;FI"
pathname;FI"U/Users/jejacks0n/Projects/teabag/test/javascripts/teabag/qunit/qunit_test.coffee;FI"content_type;FI"application/javascript;FI"
mtime;FI"2012-12-28T16:06:57-07:00;FI"length;Fi‡I"digest;F"%0648811dd18bf099dbc77d72ab867be0I"source;FI"‡(function() {

  console.log("testing console output");

  test("doesn't need a module", function() {
    return ok(passing === true, "Passing is true");
  });

  module("Teabag running QUnit");

  test("is awesome", function() {
    return ok(passing === true, "Passing is true");
  });

  module("Running tests", test("actually tests", 1, function() {
    fixture("fixture.html");
    return ok(document.getElementById("fixture_view").tagName === "DIV", "loads the fixture");
  }));

  test("can handle more than one test", function() {
    expect(1);
    stop();
    return setTimeout(function() {
      ok(passing === true, "Passing is true");
      return start();
    }, 1000);
  });

  module("Failing tests");

  test("can fail", function() {
    ok(failing === false, "Failing is false");
    return ok(failing === false, "Failing is false");
  });

  fixture.preload("fixture.html", "fixture.json");

  module("Using fixtures", {
    setup: function() {
      fixture.set("<h2>Another Title</h2>");
      return this.fixtures = fixture.load("fixture.html", "fixture.json", true);
    }
  });

  test("loads fixtures", function() {
    ok(document.getElementById("fixture_view").tagName === "DIV", "is in the dom");
    ok(this.fixtures[0] === fixture.el, "has return values for the el");
    return ok(this.fixtures[1].title === fixture.json[0].title, "has return values for json");
  });

}).call(this);
;FI"required_assets_digest;F"%3235d55dbe55fa26c698411291ce5b48I"
_version;F"%6776f581a4329e299531e1d52aa59832

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
teabag-0.5.1 spec/dummy/tmp/cache/assets/DC4/860/sprockets%2Fa01a3cf460ff15daae0f928d0f85f52e