 
   describe "NodesAndLinkedEdges", ->
 
-    afterEach ->
-      @gv.node_view.glyph.hit_test.restore()
-
-    beforeEach ->
-      @stub = sinon.stub(@gv.node_view.glyph, "hit_test")
-
     describe "do_selection method", ->
 
       it "should clear edge selections if hit_test result is empty", ->

      parent: @plot_canvas_view
    })

  describe "NodesOnly", ->

    afterEach ->
      @gv.node_view.glyph.hit_test.restore()

    beforeEach ->
      @stub = sinon.stub(@gv.node_view.glyph, "hit_test")

    describe "do_selection method", ->


    @node_renderer = new GlyphRenderer({data_source: @node_source, glyph: new Circle()})
    @edge_renderer = new GlyphRenderer({data_source: @edge_source, glyph: new MultiLine()})

    @gr = new GraphRenderer({
      node_renderer: @node_renderer
      edge_renderer: @edge_renderer
      layout_provider: new LayoutProvider()
    })

    @gv = new @gr.default_view({
      model: @gr
