 benv = require 'benv'
 moment = require 'moment'
 sinon = require 'sinon'
+rewire = require 'rewire'
 rewire = require 'rewire'
 Backbone = require 'backbone'
 _ = require 'underscore'

      @MetaDataView.__set__
        createOrder: createOrderStub
        location: locationMock
        aquireArtwork: -> {}
        CurrentUser:
          orNull: ->
            hasLabFeature: (feature) -> feature == 'New Buy Now Flow'

    benv.teardown()

  beforeEach ->
    @MetaDataView = rewire('../view.coffee')
    @model =
      get: (key) => @model[key]
      id: 'peter-alexander-wedge-with-puff'
