scinote-web/spec/factories/repository_date_values.rb

15 lines
480 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :repository_date_value do
created_by { create :user }
last_modified_by { created_by }
data { Time.now }
after(:build) do |repository_date_value|
repository_date_value.repository_cell ||= build(:repository_cell,
:date_value,
repository_date_value: repository_date_value)
end
end
end