Sha256: 188db152117cb98e0a96deccac0f036fafc6c72d930d6141daff4c951b16ae9b
Contents?: true
Size: 391 Bytes
Versions: 3
Compression:
Stored size: 391 Bytes
Contents
# frozen_string_literal: true # spec/factories/has_states.rb FactoryBot.define do factory :state, class: 'HasStates::State' do association :stateable, factory: :user state_type { 'kyc' } status { 'pending' } metadata { {} } end factory :user do sequence(:name) { |n| "User #{n}" } end factory :company do sequence(:name) { |n| "Company #{n}" } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stateful_models-0.0.3 | spec/factories/has_states.rb |
stateful_models-0.0.2 | spec/factories/has_states.rb |
stateful_models-0.0.1 | spec/factories/has_states.rb |