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