o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1355379672.478404:@value"P{I"
class:EFI"BundledAsset;�FI"logical_path;�FI"&teabag/jasmine/runner_spec.coffee;�FI"
pathname;�FI"X/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/jasmine/runner_spec.coffee;�FI"content_type;�FI"application/javascript;�FI"
mtime;�FI"2012-12-10T23:20:24-07:00;�FI"length;�FifI"digest;�F"%eb7605d02e063ee8781a5de9a2d72f51I"source;�FI"f(function() {

  describe("Jasmine Teabag.Runner", function() {
    beforeEach(function() {
      this.env = jasmine.getEnv();
      this.originalFilter = this.env.specFilter;
      this.executeSpy = spyOn(this.env, "execute");
      return this.runner = new Teabag.Runner();
    });
    afterEach(function() {
      return this.env.specFilter = this.originalFilter;
    });
    describe("constructor", function() {
      return it("calls execute on the jasmine env", function() {
        return expect(this.executeSpy).toHaveBeenCalled();
      });
    });
    describe("#setup", function() {
      beforeEach(function() {
        this.runner.params = {
          grep: "foo"
        };
        this.instance = {
          setFilter: function() {}
        };
        if (navigator.userAgent.match(/PhantomJS/)) {
          this.reporterSpy = spyOn(Teabag.Reporters, "Console").andReturn(this.instance);
        } else {
          this.reporterSpy = spyOn(Teabag.Reporters, "HTML").andReturn(this.instance);
        }
        return this.addReporterSpy = spyOn(this.env, "addReporter");
      });
      it("sets the updateInterval", function() {
        return expect(this.env.updateInterval).toEqual(1000);
      });
      it("sets the specFilter", function() {
        var spy;
        spy = spyOn(this.instance, "setFilter");
        this.runner.setup();
        expect(typeof this.env.specFilter).toEqual("function");
        return expect(spy).toHaveBeenCalledWith("foo");
      });
      it("adds the reporter to the env", function() {
        this.runner.setup();
        expect(this.reporterSpy).toHaveBeenCalled();
        return expect(this.addReporterSpy).toHaveBeenCalled();
      });
      return it("adds fixture support", function() {
        var spy;
        spy = spyOn(this.runner, "addFixtureSupport");
        this.runner.setup();
        return expect(spy).toHaveBeenCalled();
      });
    });
    return describe("#addFixtureSupport", function() {
      beforeEach(function() {
        jasmine.getFixtures || (jasmine.getFixtures = function() {});
        jasmine.getStyleFixtures || (jasmine.getStyleFixtures = function() {});
        jasmine.getJSONFixtures || (jasmine.getJSONFixtures = function() {});
        this.fixtureObj = {};
        this.styleFixtureObj = {};
        this.jsonFixtureSpyObj = {};
        this.fixtureSpy = spyOn(jasmine, "getFixtures").andReturn(this.fixtureObj);
        this.styleFixtureSpy = spyOn(jasmine, "getStyleFixtures").andReturn(this.styleFixtureObj);
        return this.jsonFixtureSpy = spyOn(jasmine, "getJSONFixtures").andReturn(this.jsonFixtureSpyObj);
      });
      return it("adds fixture support", function() {
        expect(jasmine.getFixtures).toBeDefined();
        this.runner.fixturePath = '/path/to/fixtures';
        this.runner.addFixtureSupport();
        expect(this.fixtureObj.containerId).toBe("teabag-fixtures");
        expect(this.fixtureObj.fixturesPath).toBe("/path/to/fixtures");
        expect(this.styleFixtureObj.fixturesPath).toBe("/path/to/fixtures");
        return expect(this.jsonFixtureSpyObj.fixturesPath).toBe("/path/to/fixtures");
      });
    });
  });

}).call(this);
;�FI"required_assets_digest;�F"%0d085098b6a0ceb0da1ff5f5df03ff5dI"
_version;�F"%6776f581a4329e299531e1d52aa59832