 
   describe "when '--rebase' is passed as extraArgs", ->
     it "calls git.cmd with ['pull', '--rebase'], the remote name", ->
-      view = new PullBranchListView(repo, "branch1\nbranch2", "remote", '--rebase')
+      view = new PullBranchListView(repo, "remote/branch1\nremote/branch2", "remote", '--rebase')
       view.confirmSelection()
 
       waitsFor -> git.cmd.callCount > 0

    expect(@view.result.catch).toBeDefined()

  it "removes the 'origin/HEAD' option in the list of branches", ->
    view = new PullBranchListView(repo, "branch1\nbranch2\norigin/HEAD", "remote", '')
    expect(@view.items.length).toBe 3

  describe "when the special option is selected", ->
    it "calls git.cmd with ['pull'] and remote name", ->


describe "PullBranchListView", ->
  beforeEach ->
    @view = new PullBranchListView(repo, "remote/branch1\nremote/branch2", "remote", '')
    spyOn(git, 'cmd').andReturn Promise.resolve 'pulled'

  it "displays a list of branches and the first option is a special one for the current branch", ->
