       callback null, false
     .then next
 
-  it 'get current status', (next) ->
+  it 'get current', (next) ->
     mecano
     .call (options, callback) ->
       (@status(0) is undefined).should.be.true()

test = require './test'
fs = require 'fs'

describe 'promise status', ->

  it 'get status', (next) ->
    mecano
    .call (options, callback) ->
      @status().should.be.false()

      @status(-2).should.be.false()
      callback null, false
    .then next

  it 'honors conditions', (next) ->
    mecano
    .call
      if: -> true
    ,(options, callback) ->
      callback null, true
    .then (err, status) ->
      return next err if err
      status.should.be.true()
    .call
      if: -> false
    ,(options, callback) ->
      callback null, true
    .then (err, status) ->
      return next err if err
      status.should.be.false()
      next()




