         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(

describe 'Github Repositories', ->

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

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


  describe 'Repositories', ->
    it 'should be a div.repositories', ->
      expect(
        @$element.children('div.repositories').length
      ).toBe(1)

    it 'should contain each repository in a div.repository', ->
      expect(
        @$element.children('div.repositories').children('div.repository').length
      ).toBe(getJSONFixture('github_user.json').length)

  describe 'A repository', ->
    it 'should be ided by data-github-id', ->
      data = getJSONFixture('github_user.json')
      for repo in data
        expect(
