 _               = require 'underscore'
 should          = require 'should'
 {intType,
-floatType}      = require '../../../spec_helpers'
+stringType}      = require '../../../spec_helpers'
 
 describe "StructType#dress", ->
 
-  type = new StructType([intType, floatType], "point")
+  type = new StructType([intType, stringType], "point")
 
   subject = (arg) ->
     type.dress(arg)

        subject(arg).location.should.equal('')

    context 'with an invalid attribute', ->
      arg = [ 12, "bar" ]

      it 'should raise a TypeError', ->
        subject(arg).should.be.an.instanceof(TypeError)
        subject(arg).message.should.equal("Invalid value `bar` for floatType")

      xit 'should have no cause', ->
        should(subject(arg).cause).be.null

      it 'should have the correct location', ->

  context 'with a valid Array', ->

    it 'should coerce to an array', ->
      arg = [ 12, 'foo' ]
      subject(arg).should.eql(arg)

  context 'when raising an error', ->
