Sha256: b9c7e15f8eb2a0238a34eed1bb6a3eaa1c1ab9cdbd67b18880efd6d001f6fe4f
Contents?: true
Size: 446 Bytes
Versions: 34
Compression:
Stored size: 446 Bytes
Contents
FactoryGirl.define do #sequence :name do |n| # "name#{n}" #end factory :<%= module_snake %>_<%= resource_singular %>_<%= api_version %>, class: ::<%= module_camel %>::V<%= api_version %>::<%= resource_camel %> do <% attributes.each do |pair| %><% field = pair.split(":")[0]; default = default_values(pair.split(":")[1]) %><% if default != nil%> <%= field %> <%= default %><% end %><% end %> #name #attr "Default value" end end
Version data entries
34 entries across 34 versions & 1 rubygems