Sha256: 74bc3aff75ab663e90a72dd2e060b4d75602e7da678d7cad52007c4e2b43fec8

Contents?: true

Size: 156 Bytes

Versions: 4

Compression:

Stored size: 156 Bytes

Contents

FactoryBot.define do
  factory :<%= res_name %> do
<% res_attrs.each do |name, type| -%>
    <%= name %> { <%= sample_value(type) %> }
<% end -%>
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grapethor-0.2.3 lib/grapethor/templates/resource_rspec/spec/factories/%res_name_plural%.rb.tt
grapethor-0.2.2 lib/grapethor/templates/resource_rspec/spec/factories/%res_name_plural%.rb.tt
grapethor-0.2.1 lib/grapethor/templates/resource_rspec/spec/factories/%res_name_plural%.rb.tt
grapethor-0.2.0 lib/grapethor/templates/resource_rspec/spec/factories/%res_name_plural%.rb.tt