scinote-web/spec/factories/repository_status_values.rb

15 lines
501 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :repository_status_value do
created_by { create :user }
last_modified_by { created_by }
repository_status_item
2020-01-10 18:09:47 +08:00
after(:build) do |repository_status_value|
repository_status_value.repository_cell ||= build(:repository_cell,
:status_value,
repository_status_value: repository_status_value)
end
end
end