Merge branch 'caching' into new_cart

Conflicts:
	app/serializers/api/variant_serializer.rb
This commit is contained in:
Will Marshall
2014-07-18 11:23:25 +10:00
7 changed files with 70 additions and 5 deletions

View File

@@ -142,11 +142,10 @@ describe ShopController do
end
it "includes the primary taxon" do
taxon = mock_model(Spree::Taxon, name: "fruitbat")
taxon = create(:taxon)
Spree::Product.any_instance.stub(:primary_taxon).and_return taxon
taxon.stub_chain(:icon, :url).and_return ""
xhr :get, :products
response.body.should have_content "fruitbat"
response.body.should have_content taxon.name
end
end
end