         extracted.should.be.ok
         next()
   
-  it 'should see extension .zip', (next) ->
+  they 'should see extension .zip', (ssh, next) ->
     # Test a non existing extracted dir
     mecano.extract
+      ssh: ssh
       source: "#{__dirname}/../resources/a_dir.zip"
       destination: scratch
     , (err, extracted) ->

        extracted.should.be.ok
        next()
  
  it 'should # option # not_if_exists', (next) ->
    # Test with invalid creates option
    mecano.extract
      source: "#{__dirname}/../resources/a_dir.tgz"
      destination: scratch
      not_if_exists: __dirname

      extracted.should.not.be.ok
      next()

  they 'should pass error for invalid extension', (ssh, next) ->
    mecano.extract
      ssh: ssh
      source: __filename
    , (err, extracted) ->
      err.message.should.eql 'Unsupported extension, got ".coffee"'
      next()

  they 'should pass error for missing source file', (ssh, next) ->
    mecano.extract
      ssh: ssh
      source: '/does/not/exist.tgz'
    , (err, extracted) ->
      err.message.should.eql 'File does not exist: /does/not/exist.tgz'
