o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360902195.9392471: @value"ä {I" class:EFI"ProcessedAsset;FI"logical_path;FI"#teabag/jasmine/runner_jspec.js;FI" pathname;FI"Y/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/jasmine/runner_jspec.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-21T15:52:04-07:00;FI" length;Fi± I" digest;F"%8d2c16491ea1ec9387c733e6d78967f7I" source;FI"± (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" }; if (window.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("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() { this.fixtureObj = { cleanUp: function() {} }; this.styleFixtureObj = { cleanUp: function() {} }; this.jsonFixtureSpyObj = { cleanUp: function() {} }; 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); ;TI"dependency_digest;F"%eb10f44b60494338fefe0fd9c03e2cedI"required_paths;F[I"Y/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/jasmine/runner_jspec.coffee;FI"dependency_paths;F[{I" path;FI"Y/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/jasmine/runner_jspec.coffee;FI" mtime;FI"2013-01-21T15:52:04-07:00;FI" digest;F"%7f2a04619f6612c122fb9da4810840d3I" _version;F"%6776f581a4329e299531e1d52aa59832