 
 PluginState = require './plugin-state'
 RSpecTestDetails = require './rspec-test-details'
+RailsRSpecFinder = require './rails-rspec-finder'
 
 module.exports =
 class RSpecTreeView extends View


    if currentBuffer?
      @currentEditorSubscriptions.add currentBuffer.onDidSave =>
        @setCurrentAndCorrespondingFile(editor)

    if editor?
      @setCurrentAndCorrespondingFile(editor)

  initialize:  ->
    @currentState = new PluginState

    @railsRSpecFinder = new RailsRSpecFinder

    @currentState.onTreeBuilt (result) =>
      @setStdErrorNotification(result)
      @redrawTree(result.asTree, result)
