Sha256: f51be7f9063f6843bee36c6b39189db33611540424514dd400f5fbdfbbf9cf6b

Contents?: true

Size: 382 Bytes

Versions: 24

Compression:

Stored size: 382 Bytes

Contents

FactoryGirl.define do
	#sequence :name do |n|
	#	"name#{n}"
	#end
  factory :<%= HorsePower.get_singular(resource_name) %>_<%= api_version %>, class: <%= HorsePower.get_camel(resource_name) %> do
  	<% attributes.each do |pair| -%>
<%= HorsePower.get_column(pair) %> <%= HorsePower.default_values(HorsePower.get_type(pair)) %>
  	<% end -%>
#name 
  	#attr "Default value"
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
horse_power-0.1.2 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.1.1 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.1.0 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.0.1 lib/generators/horse_power/tests/templates/factory.rb.erb