Sha256: 1116c26c86572588a92360a711b174cd1e756e2e9a2697231ad72366e8e8d5ba

Contents?: true

Size: 351 Bytes

Versions: 7

Compression:

Stored size: 351 Bytes

Contents

FactoryGirl.define do

  factory :country do
    sequence(:name) { |s| "Country #{s}" }
  end

  factory :city do
    sequence(:name) { |s| "City #{s}" }
    country
  end

  factory :street do
    sequence(:name) { |s| "Street #{s}" }
    city
  end

  factory :language do
    sequence(:name) { |s| "Language #{s}" }
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dynamic_controller-0.0.8 spec/factories.rb
dynamic_controller-0.0.7 spec/factories.rb
dynamic_controller-0.0.6 spec/factories.rb
dynamic_controller-0.0.5 spec/factories.rb
dynamic_controller-0.0.4 spec/factories.rb
dynamic_controller-0.0.3 spec/factories.rb
dynamic_controller-0.0.2 spec/factories.rb