Flowdock
method

spec_name_for

Importance_0
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Runner::LineNumberQuery
spec_name_for(file, line_number) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/runner/line_number_query.rb, line 12
      def spec_name_for(file, line_number)
        best_match.clear
        file = File.expand_path(file)
        determine_best_match(file, line_number)
        if best_match[:example_group]
          if best_match[:example]
            "#{best_match[:example_group].description} #{best_match[:example].description}"
          else
            best_match[:example_group].description
          end
        else
          nil
        end
      end
Register or log in to add new notes.