Sha256: 927e73501bf729c64f48b4b37c794b312d325bbf3588638601b4e3cb93a7a7be

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

require 'factory_girl'

require 'moblues/data_model/entity'

FactoryGirl.define do
  factory :entity, class: Moblues::DataModel::Entity do
    name 'relationship'
    association :attribute, strategy: :build
    association :relationship, strategy: :build

    initialize_with { new(name: name, attributes: [ attribute ], relationships: [ relationship ]) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
moblues-0.4.0 spec/resources/factories/data_model/entity_factory.rb
moblues-0.3.0 spec/resources/factories/data_model/entity_factory.rb
moblues-0.2.0 spec/resources/factories/data_model/entity_factory.rb
moblues-0.1.0 spec/resources/factories/data_model/entity_factory.rb
moblues-0.0.1 spec/resources/factories/data_model/entity_factory.rb