Sha256: ad0ab936a1aa6423a11f54422f97c4f790c6ea111d2667747a1eab556bc8d939
Contents?: true
Size: 540 Bytes
Versions: 49
Compression:
Stored size: 540 Bytes
Contents
# frozen_string_literal: true require 'spree/testing_support/factory_bot' Spree::TestingSupport::FactoryBot.when_cherry_picked do Spree::TestingSupport::FactoryBot.deprecate_cherry_picking require 'spree/testing_support/factories/taxonomy_factory' end FactoryBot.define do factory :taxon, class: 'Spree::Taxon' do name { 'Ruby on Rails' } taxonomy parent_id { nil } trait :with_icon do icon { Spree::Core::Engine.root.join('lib', 'spree', 'testing_support', 'fixtures', 'blank.jpg').open } end end end
Version data entries
49 entries across 49 versions & 1 rubygems