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

Version Path
json_voorhees-1.5.1 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.5.0 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.4.9 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.4.8 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.4.7 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.4.6 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.4.5 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.4.2 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.4.1 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.4.0 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.3.2 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.3.1 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.3.0 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-1.0.0 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-0.5.5 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-0.5.4 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-0.5.3 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-0.5.2 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-0.5.1 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb
json_voorhees-0.5.0 lib/generators/json_voorhees/app_make_tests/templates/factory.rb.erb