Sha256: d20983b31393c3645e3ca8ab896a1bdd1d4c73b13a91b0053d50f3e458c7dbf0
Contents?: true
Size: 602 Bytes
Versions: 6
Compression:
Stored size: 602 Bytes
Contents
require 'spec_helper' describe Spree::Tracker do before(:each) do @store = FactoryGirl.create(:store, default: true) @tracker = FactoryGirl.create(:tracker, store: @store) @another_store = FactoryGirl.create(:store, code: 'STORE2', url: 'completely-different-store.com') @tracker2 = FactoryGirl.create(:tracker, store: @another_store) end it "pulls out the current tracker based on store code" do expect(Spree::Tracker.current('STORE2')).to eq @tracker2 end it "pulls out the current tracker" do expect(Spree::Tracker.current(@store.url)).to eq @tracker end end
Version data entries
6 entries across 6 versions & 1 rubygems