From 30262e1969eab4b7f55787c2eb2c2cf123e1a56a Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 4 Jul 2014 14:03:30 +1000 Subject: [PATCH] Clean up specs, fix broken spec, remove JS log --- .../javascripts/darkswarm/services/enterprises.js.coffee | 1 - spec/helpers/shared_helper_spec.rb | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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