       runner =
         configuration:
           options:
-            hookfiles: ['foo/bar/hooks', './**/*_hooks.*']
+            hookfiles: ['foo/bar/hooks', './test/**/*_hooks.*']
 
       addHooks runner, transactions, (err) ->
         return done err if err

        runner =
          configuration:
            options:
              hookfiles: './**/*_hooks.*'
        sinon.stub(globStub, 'sync').callsFake (pattern) ->
          ['file1.js', 'file2.coffee']
        sinon.stub(pathStub, 'resolve').callsFake (path, rel) ->

      runner =
        configuration:
          options:
            hookfiles: './test/**/*_hooks.*'

    it 'should return files', (done) ->
      sinon.spy globStub, 'sync'
