       stack = tagFinder.parseFragment fragment, [], /<(body)|(notag)/, -> true
       expect(stack[stack.length-1]).toBe("body")
 
-  describe 'TagFinder#tagsNotClosedInFragment', ->
+  describe 'TagFinder::tagsNotClosedInFragment', ->
     it 'returns the outermost tag not closed in an HTML fragment', ->
       fragment = "<html><head></head><body><h1><p></p>"
       tags = tagFinder.tagsNotClosedInFragment(fragment)

      fragment = "<other> </other><body></body></body><html>"
      expect(tagFinder.tagDoesNotCloseInFragment(["body"], fragment)).toBe(false)

  describe 'TagFinder#closingTagForFragments', ->
    it 'returns the last opened in preFragment tag that is not closed in postFragment', ->
      preFragment = "<html><head></head><body><h1></h1><p>"
      postFragment = "</body></html>"

TagFinder = require '../lib/tag-finder'
tagFinder = new TagFinder()

describe 'closeTag', ->
  describe 'TagFinder::parseFragment', ->
    fragment = ""

    beforeEach ->
