Sha256: a58ac3be7da111cf3cc5af53d3d1e1dfe8a3da08dd950689eb4327ab83d9b1cf

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

unless FactoryBot.factories.registered?(:tracker)
  FactoryBot.define do
    factory :tracker, class: Spree::Tracker do
      analytics_id { 'A100' }
      active { true }
      engine { :google_analytics }
      store { Spree::Store.default || create(:store) }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_analytics_trackers-2.1.1 lib/spree_analytics_trackers/factories.rb
spree_analytics_trackers-2.1.0 lib/spree_analytics_trackers/factories.rb
spree_analytics_trackers-2.0.0 lib/spree_analytics_trackers/factories.rb