Clean up specs, fix broken spec, remove JS log

This commit is contained in:
Rohan Mitchell
2014-07-04 14:03:30 +10:00
parent f8572db683
commit 30262e1969
2 changed files with 3 additions and 4 deletions

View File

@@ -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: ->

View File

@@ -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