'use babel'

import ClangRenameCommand from '../lib/clang-rename-command'

describe('ClangRenameCommand ', () => {
  it('invokes the command', () => {
    const clangRenameCommand = new ClangRenameCommand('./spec/bin/clang-rename')

    let result = null
    waitsForPromise(() => {
      return clangRenameCommand.rename([], 0, 'bar', 'foo.cpp').then(output => {
        result = output
        return output
      })
    })
    runs(() => {
      expect(result).toBe('-offset 0 -new-name bar foo.cpp')
    })
  })
})

'use babel'

import ClangRenameCommand from '../lib/clang-rename-command'

describe('ClangRenameCommand ', () => {
  it('invokes the command', () => {
    const clangRenameCommand = new ClangRenameCommand('./spec/bin/clang-rename')

    let result = null
    waitsForPromise(() => {
      return clangRenameCommand.rename([], 0, 'bar', 'foo.cpp').then(output => {
        result = output
        return output
      })
    })
    runs(() => {
      expect(result).toBe(`-offset 0 -new-name bar foo.cpp`)
    })
  })
})

--- 
+++ 
@@ -14,7 +14,7 @@
       })
     })
     runs(() => {
-      expect(result).toBe('-offset 0 -new-name bar foo.cpp')
+      expect(result).toBe(`-offset 0 -new-name bar foo.cpp`)
     })
   })
 })
Fix the test case of clang-rename

  ref #3
