         assert.same element.style(margin: '20px'), element
 
     "\b('name1:value1; name2:value2')":
-      topic: -> get_element(this)
+      topic: get_element
 
       "should parse all the styles out of the string": (element) ->
         element.style 'margin: 30px; padding-right: 20px; '

        assert.equal element._.style.cssFloat, 'left'

    "\b(name1: 'value1', name2: 'value2')":
      topic: -> get_element(this)

      "should set all the styles from a hash": (element) ->
        element.style

      "should return the element reference back": (element) ->
        assert.same element.style('margin:8px'), element



  "#getClass()":
    topic: get_element

    "should return the element's className property": (element)->
      element._.className = 'test1 test2'
      assert.equal element.getClass(), 'test1 test2'

  "#setClass('name')":
    topic: get_element

    "should set the entire 'className' property": (element)->
      element.setClass('test3 test4')
      assert.equal element._.className, 'test3 test4'

    "should return the element back": (element) ->
      assert.same element.setClass('one two'), element

  "#addClass('name')":
    topic: get_element

    "should add a class name to the list": (element) ->
      element._.className = 'one two'
      element.addClass('three')
      assert.equal element._.className, 'one two three'

    "should not duplicate existing classes": (element) ->
      element._.className = 'one two three'
      element.addClass('two')
      assert.equal element._.className, 'one two three'

    "should return the element itself back": (element) ->
      assert.same element.addClass('boo'), element

  "#removeClass('name')":
    topic: get_element

    "should remove classes from the list": (element)->
      element._.className = 'one two three'
      element.removeClass('two')
      assert.equal element._.className, 'one three'

    "should not leave trailing spaces": (element)->
      element._.className = 'one two three'
      element.removeClass 'one'
      element.removeClass 'three'
      assert.equal element._.className, 'two'

    "should return the element itself back": (element)->
      assert.same element.removeClass('boo'), element

  "#toggleClass('name')":
    topic: get_element

    "should add a class name when it is not on the list": (element)->
      element._.className = 'one'
      element.toggleClass 'two'
      assert.equal element._.className, 'one two'

    "should remove class when it is on the list": (element) ->
      element._.className = 'one two'
      element.toggleClass 'two'
      assert.equal element._.className, 'one'

    "should return reference to the element back": (element)->
      assert.same element.toggleClass('boo'), element
