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-1.0.0 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.9.0 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.8.5 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.8.3 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.8.2 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.8.1 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.8.0 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.7.1 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.7.0 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.6.5 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.6.0 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.5.0 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.4.1 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.4.0 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.3.3 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.3.2 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.2.1 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.2.0 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.1.6 lib/generators/horse_power/tests/templates/factory.rb.erb
horse_power-0.1.5 lib/generators/horse_power/tests/templates/factory.rb.erb