diff --git a/app/assets/javascripts/darkswarm/services/enterprises.js.coffee b/app/assets/javascripts/darkswarm/services/enterprises.js.coffee index 0f8a6b2b16..84a3c2e7c2 100644 --- a/app/assets/javascripts/darkswarm/services/enterprises.js.coffee +++ b/app/assets/javascripts/darkswarm/services/enterprises.js.coffee @@ -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: -> diff --git a/spec/helpers/shared_helper_spec.rb b/spec/helpers/shared_helper_spec.rb index de56a1e4b5..14df65c2b9 100644 --- a/spec/helpers/shared_helper_spec.rb +++ b/spec/helpers/shared_helper_spec.rb @@ -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