         expect(children[2]).toBeMatchedBy('div.panel-footer')
 
     it 'should display name in (.panel-heading .name)', ->
-      element = $( '#fixtures' )
-      element.githubRepo()
       repos = getJSONFixture('github_user.json')
       for repo in repos
         expect(

        ).toContainElement('.repository[data-github-id="'+repo.id+'"]')

    it 'should have the same structure as a twbs panel', ->
      element = $( '#fixtures' )
      element.githubRepo()
      $('#fixtures div.repositories div.repository').each (i, e)->
        expect(e).toBeMatchedBy('div.panel.panel-default')
        children = $(e).children('*')

describe 'Github Repositories', ->

  beforeEach ->
    loadFixtures('origin.html')
    @$element = $( '#fixtures' )
    @$element.githubRepo()

  describe 'Github API', ->
    it 'should call the correct url', ->
