Sha256: bd51f36667a0e62fec01a1f4771dff7119f94f56f30bd800cd8f61949da4538d
Contents?: true
Size: 500 Bytes
Versions: 13
Compression:
Stored size: 500 Bytes
Contents
describe("<%=class_name%>", function() { var model; describe("defaults", function() { beforeEach(function() { model = new <%=class_name%>(); }); <%- attributes.each do |attr| -%> it("should have a '<%=attr.name%>' attribute", function() { expect(model.<%=attr.name%>).toEqual(<%=attr.default.to_json%>); }); <%- end -%> }); it("should instantiate without errors", function() { expect(function() { new <%=class_name%>(); }).not.toThrow(); }); });
Version data entries
13 entries across 13 versions & 1 rubygems