 
   it "does not re-render the child when given the same props", ->
     spy = Sinon.spy()
-    Child = React.createClass
-      render: ->
-        spy @props.childProp
-        null
 
-    Wrapped = wrap Child, tide: @tideInstance
+    Wrapped = createWrappedComponent @tideInstance, ->
+      spy @props.childProp
 
     parentSetState = null
     Parent = React.createClass


  it "always re-renders when impure is true", ->
    spy = Sinon.spy()
    Child = React.createClass
      render: ->
        spy @props.childProp
        null

    Wrapped = wrap Child, tide: @tideInstance, impure: true

    parentSetState = null
    Parent = React.createClass

React = require "react/addons"
Sinon = require "sinon"
Immutable = require "immutable"
assign = require "lodash.assign"
{TestUtils} = React.addons

Tide = require "base"
