mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
Merge branch 'caching' into new_cart
Conflicts: app/serializers/api/variant_serializer.rb
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user