+Q = require 'q'
 benv = require 'benv'
 sinon = require 'sinon'
 Backbone = require 'backbone'

      @view.$('input[name="phone"]').val '555-555-5555'
      @view.$('button').click()

      Backbone.sync.called.should.be.true()
      Backbone.sync.args[0][0].should.equal 'update'
      Backbone.sync.args[0][1].url().should.containEql '/api/v1/me'


  describe 'next', ->
    beforeEach ->
      sinon.stub(Backbone, 'sync')
        .returns $.Deferred().resolve().promise()

      @state.set 'steps', ['basic_info', 'after_basic_info']
      @view.render()

