spec/fabricators/gene_fabricator.rb
Fabricator(:gene, class_name: 'DataModel::Gene') do
  name { sequence(:name) { |i| "Gene ##{i}" } }
  long_name { sequence(:long_name) { |i| "Gene ##{i} long name" } }
end

Fabricator(:gene_alias, class_name: 'DataModel::GeneAlias') do |f|
  f.alias { sequence(:alias) { |i| "Gene Alias ##{i}" } }
end

Fabricator(:gene_claim, class_name: 'DataModel::GeneClaim') do
  name { sequence(:name) { |i| "Gene Claim ##{i}" } }
  nomenclature { |attrs| "#{attrs[:source].source_db_name} gene claim name" }
  nomenclature { sequence(:nomenclature) { |i| "Gene claim ##{i} nomenclature" } }
end

Fabricator(:gene_claim_alias, class_name: 'DataModel::GeneClaimAlias') do |f|
  f.alias { sequence(:alias) { |i| "Gene Claim Alias ##{i}" } }
  f.nomenclature { sequence(:nomenclature) { |i| "Gene Claim Alias nomenclature ##{i}" } }
end

Fabricator(:gene_claim_attribute, class_name: 'DataModel::GeneClaimAttribute') do
  name { sequence(:name) { |i| "Gene Claim Attribute Name ##{i}" } }
  value { sequence(:value) { |i| "Gene Claim Attribute Value ##{i}" } }
end

Fabricator(:gene_claim_category, class_name: 'DataModel::GeneClaimCategory') do
  name { sequence(:gene_claim_category) { |i| "Gene Claim Category ##{i}" } }
end

Fabricator(:gene_gene_interaction_claim, class_name: 'DataModel::GeneGeneInteractionClaim')

Fabricator(:gene_gene_interaction_claim_attribute, class_name: 'DataModel::GeneGeneInteractionClaimAttribute') do
  name { sequence(:gene_gene_interaction_claim_attribute_name) { |i| "Inter gene interaction ##{i} name" } }
  value { sequence(:gene_gene_interaction_claim_attribute_value) { |i| "Inter gene interaction ##{i} value" } }
end
