mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Clean up specs, fix broken spec, remove JS log
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
Darkswarm.factory 'Enterprises', (enterprises, CurrentHub, Taxons, Dereferencer)->
|
||||
console.log enterprises[0].address
|
||||
new class Enterprises
|
||||
enterprises_by_id: {} # id/object pairs for lookup
|
||||
constructor: ->
|
||||
|
||||
@@ -24,10 +24,10 @@ describe SharedHelper do
|
||||
helper.distributor_link_class(d1).should =~ /empties-cart/
|
||||
end
|
||||
|
||||
describe "Injecting json" do
|
||||
let(:enterprise) { create(:distributor_enterprise, facebook: "roger") }
|
||||
describe "injecting json" do
|
||||
let!(:enterprise) { create(:distributor_enterprise, facebook: "roger") }
|
||||
|
||||
it "Will inject via AMS" do
|
||||
it "will inject via AMS" do
|
||||
helper.inject_json_ams("test", [enterprise], Api::EnterpriseSerializer).should match enterprise.name
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user