Sha256: bc59e754fa2a12231db1fc7995e7fce23f39f16f74bd171629ebf471508e827f
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
require 'factory_girl' require 'moblues/data_model/attribute' FactoryGirl.define do factory :attribute, class: Moblues::DataModel::Attribute do name 'attribute' type :string optional false 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 trait :optional do type :boolean end initialize_with { new(name: name, type: type, optional: optional) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.4.0 | spec/resources/factories/data_model/attribute_factory.rb |