mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix spec fail with taxons by id
This commit is contained in:
@@ -11,7 +11,7 @@ describe Api::EnterpriseSerializer do
|
||||
it "includes distributed taxons" do
|
||||
enterprise.stub(:distributed_taxons).and_return [taxon]
|
||||
serializer = Api::EnterpriseSerializer.new enterprise
|
||||
serializer.to_json.should match taxon.name
|
||||
serializer.to_json.should match taxon.id.to_s
|
||||
end
|
||||
|
||||
it "will render urls" do
|
||||
|
||||
Reference in New Issue
Block a user