o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356308479.5696268: @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"2012-12-23T17:20:58-07:00;FI" length;Fi I" digest;F"%e3a98179c306747bf417755d2f53b8e5I" 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" }; this.instance = { setFilter: function() {} }; 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("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() { 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"%ac146bb1c8670fb6f471af3165403993I"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"2012-12-23T17:20:58-07:00;FI" digest;F"%46dc19103058d2eea933df7363f37b11I" _version;F"%6776f581a4329e299531e1d52aa59832