     describe "the _ register", ->
       describe "reading", ->
         it "is always the empty string", ->
-          expect(vimState.getRegister("_").text).toEqual ''
+          register('_').toEqual ''
 
       describe "writing", ->
         it "throws away anything written to it", ->
-          vimState.setRegister('_', text: 'new content')
-          expect(vimState.getRegister("_").text).toEqual ''
+          register('_', text: 'new content')
+          register("_").toEqual ''
 
     describe "the % register", ->
       beforeEach ->

    describe "the + register", ->
      describe "reading", ->
        it "is the same the system clipboard", ->
          expect(vimState.getRegister('*').text).toEqual 'initial clipboard content'
          expect(vimState.getRegister('*').type).toEqual 'character'

      describe "writing", ->
        beforeEach ->
          vimState.setRegister('*', text: 'new content')

        it "overwrites the contents of the system clipboard", ->
          expect(atom.clipboard.read()).toEqual 'new content'


      describe "reading", ->
        it "returns the filename of the current editor", ->
          register('%').toEqual '/Users/atom/known_value.txt'

      describe "writing", ->
        it "throws away anything written to it", ->
          register('%', "new content")
          register('%').toEqual '/Users/atom/known_value.txt'

    describe "the ctrl-r command in insert mode", ->
      beforeEach ->
        text "02\n"
        cursor [0, 0]
        register('"', text: '345')
        register('a', text: 'abc')
        atom.clipboard.write "clip"
        keydown 'a'
        editor.insertText '1'
