Sha256: 2f3f0d51008977aef00dc5e0ab04e69819ee919207ba3956bc4b8f047ee6c465

Contents?: true

Size: 1.91 KB

Versions: 4

Compression:

Stored size: 1.91 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1358449144.617036:@value"?{I"
class:EFI"BundledAsset;FI"logical_path;FI"4teabag/base/reporters/html/failure_view_spec.js;TI"
pathname;FI"j/Users/jejacks0n/Projects/teabag/spec/javascripts/teabag/base/reporters/html/failure_view_spec.coffee;FI"content_type;FI"application/javascript;FI"
mtime;FI"2013-01-14T11:17:36-07:00;FI"length;Fi5I"digest;F"%ddad806c1ae60e00e0f82969e934246aI"source;FI"5(function() {

  describe("Teabag.Reporters.HTML.FailureView", function() {
    describe("constructor", function() {
      return it("assigns @spec", function() {
        var spec, subject;
        spec = {
          foo: "bar"
        };
        spyOn(Teabag.Reporters.HTML.FailureView.prototype, 'build');
        subject = new Teabag.Reporters.HTML.FailureView(spec);
        return expect(subject.spec).toBe(spec);
      });
    });
    return describe("#build", function() {
      beforeEach(function() {
        this.mockSpec = {
          link: "_link_",
          fullDescription: "_full_description_",
          errors: function() {
            return [
              {
                message: "_error_message_",
                stack: "_error_stack_"
              }
            ];
          }
        };
        this.subject = new Teabag.Reporters.HTML.FailureView(this.mockSpec);
        return this.subject.build();
      });
      return it("builds the html", function() {
        var content;
        content = this.subject.el.innerHTML;
        expect(content).toContain('href="_link_"');
        expect(content).toContain('_full_description_');
        expect(content).toContain("<strong>_error_message_</strong>");
        return expect(content).toContain("_error_stack_");
      });
    });
  });

}).call(this);
;FI"required_assets_digest;F"%d339b69d87d84e38f35516efdd009645I"
_version;F"%ffd318ca8b794f42f5029101c2cf5d91

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
guard-teaspoon-0.0.4 spec/dummy/tmp/cache/assets/D3C/840/sprockets%2Fc6202ec91d567a85bd3d46dc43ea9108
guard-teaspoon-0.0.3 spec/dummy/tmp/cache/assets/D3C/840/sprockets%2Fc6202ec91d567a85bd3d46dc43ea9108
guard-teabag-0.0.2 spec/dummy/tmp/cache/assets/D3C/840/sprockets%2Fc6202ec91d567a85bd3d46dc43ea9108
guard-teabag-0.0.1 spec/dummy/tmp/cache/assets/D3C/840/sprockets%2Fc6202ec91d567a85bd3d46dc43ea9108