From 206275b794e0ca943378b993fc3f549e703fa17d Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 4 Jul 2014 11:54:21 +1000 Subject: [PATCH] Code cleanups --- spec/helpers/shared_helper_spec.rb | 4 ++-- .../javascripts/unit/darkswarm/services/taxon_spec.js.coffee | 2 +- spec/models/distributor_shipping_method_spec.rb | 5 ----- 3 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 spec/models/distributor_shipping_method_spec.rb diff --git a/spec/helpers/shared_helper_spec.rb b/spec/helpers/shared_helper_spec.rb index d1d99c331f..de56a1e4b5 100644 --- a/spec/helpers/shared_helper_spec.rb +++ b/spec/helpers/shared_helper_spec.rb @@ -32,8 +32,8 @@ describe SharedHelper do end it "injects enterprises" do - helper.inject_enterprises().should match enterprise.name - helper.inject_enterprises().should match enterprise.facebook + helper.inject_enterprises.should match enterprise.name + helper.inject_enterprises.should match enterprise.facebook end it "injects taxons" do diff --git a/spec/javascripts/unit/darkswarm/services/taxon_spec.js.coffee b/spec/javascripts/unit/darkswarm/services/taxon_spec.js.coffee index b05c82a13d..d522eda28d 100644 --- a/spec/javascripts/unit/darkswarm/services/taxon_spec.js.coffee +++ b/spec/javascripts/unit/darkswarm/services/taxon_spec.js.coffee @@ -12,5 +12,5 @@ describe "Taxons service", -> inject ($injector)-> Taxons = $injector.get("Taxons") - it "caches taxons in an id-referenced hash", -> + it "indexes taxons by id", -> expect(Taxons.taxons_by_id[1]).toBe taxons[0] diff --git a/spec/models/distributor_shipping_method_spec.rb b/spec/models/distributor_shipping_method_spec.rb deleted file mode 100644 index bd8d7d2973..0000000000 --- a/spec/models/distributor_shipping_method_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'spec_helper' - -describe DistributorShippingMethod do - pending "add some examples to (or delete) #{__FILE__}" -end