         adManager.init()
 
       it 'loads the ads', ->
-        waitsFor (adsLoaded), "ad to be loaded into the expected div"+        waitsFor (adsLoaded), "ad to be loaded into the expected div"

require ['public/assets/javascripts/lib/core/ad_manager'], (adManager) ->

  # Utility function to help setting up each test.
  adSetUp = (ad_types) ->

      it 'defines at least 1 ad slot', ->
        expect(window.googletag.defineSlot).toHaveBeenCalled()

    describe 'loading', ->

      beforeEach ->
        adSetUp ["leaderboard", "mpu", "trafficDriver"]
        adManager.init()

      it 'loads the ads', ->
        waitsFor (adsLoaded), "ads to be loaded into the expected divs"

