Sha256: 3b76400013fba9e9633e66ad034804fbd1eaa4d7f13b65513a03b3fa9e24fd1f
Contents?: true
Size: 580 Bytes
Versions: 2
Compression:
Stored size: 580 Bytes
Contents
require 'factory_girl' require 'moblues/data_model/attribute' FactoryGirl.define do factory :attribute, class: Moblues::DataModel::Attribute do name 'attribute' type :string trait :string do type :string end trait :number do type :number end trait :decimal do type :decimal end trait :date do type :date end trait :data do type :data end trait :id do type :id end trait :unknown do type :unknown end initialize_with { new(name: name, type: type) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.3.0 | spec/resources/factories/data_model/attribute_factory.rb |
moblues-0.2.0 | spec/resources/factories/data_model/attribute_factory.rb |