Sha256: d869e32ab8803f65cf684874e51214e1ab96b8e93440aa19f15bdd936d29b647
Contents?: true
Size: 1.98 KB
Versions: 5
Compression:
Stored size: 1.98 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1355421186.86274:@value"ƒ{I" class:EFI"BundledAsset; FI"logical_path; FI"#teabag/base/runner_spec.coffee; FI" pathname; FI"U/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/base/runner_spec.coffee; FI"content_type; FI"application/javascript; FI" mtime; FI"2012-12-10T22:33:28-07:00; FI"length; FiŸI"digest; F"%3b01611513f3333414bf72939399e0fdI"source; FI"Ÿ(function() { describe("Teabag.Runner", function() { beforeEach(function() { spyOn(jasmine.getEnv(), "execute"); Teabag.Runner.run = false; return this.setupSpy = spyOn(Teabag.Runner.prototype, "setup"); }); describe("constructor", function() { it("calls setup", function() { new Teabag.Runner(); return expect(this.setupSpy).toHaveBeenCalled(); }); it("sets Teabag.Runner.run to true", function() { new Teabag.Runner(); return expect(Teabag.Runner.run).toEqual(true); }); it("sets @fixturePath to whatever was in Teabag.fixturePath", function() { var runner; Teabag.fixturePath = "/path/to/fixtures"; runner = new Teabag.Runner(); return expect(runner.fixturePath).toEqual("/path/to/fixtures"); }); return it("doesn't call setup if already run", function() { Teabag.Runner.run = true; new Teabag.Runner(); return expect(this.setupSpy).wasNotCalled(); }); }); return describe("#getParams", function() { return it("gets the params out of the window.location.search", function() { var runner; spyOn(String.prototype, "substring").andReturn("grep=foo&bar=baz"); runner = new Teabag.Runner(); return expect(runner.params).toEqual({ grep: "foo", bar: "baz" }); }); }); }); }).call(this); ; FI"required_assets_digest; F"%a6a9beee765b8851903b3cc82d091b18I" _version; F"%6776f581a4329e299531e1d52aa59832
Version data entries
5 entries across 5 versions & 1 rubygems