Sha256: 176816a91147ce72ec521c4e2362c5c0714e76d45ac2aede74f7a8cabc271443

Contents?: true

Size: 281 Bytes

Versions: 17

Compression:

Stored size: 281 Bytes

Contents

FactoryBot.define do

  factory :<%= model_name_underscored %> do
    <%- string_columns.each_key do |c| -%>
    sequence(:<%= c %>) { |n| "<%= c %>-#{n}"}
        <%-  end -%>
    <%= 'association :author, factory: :user' if author? %>
    <%= 'project' if project? %>
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
redmine_extensions-0.6.3 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.6.2 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.6.1 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.6.0 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.4.5 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.5.1 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.4.4 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.4.3 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.4.1 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.4.0 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.4.0.beta lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.3.11 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.3.10 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.3.9 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.3.8 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.3.7 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb
redmine_extensions-0.3.6 lib/generators/redmine_extensions/entity/templates/spec/factories.rb.erb