Class SpecMatcher
In: lib/spec/runner/spec_matcher.rb
Parent: Object

Methods

matches?   new  

Public Class methods

[Source]

   # File lib/spec/runner/spec_matcher.rb, line 3
3:   def initialize(context_and_or_spec_name, context_name)
4:     @context_name = context_name
5:     @name_to_match = context_and_or_spec_name
6:   end

Public Instance methods

[Source]

    # File lib/spec/runner/spec_matcher.rb, line 8
 8:   def matches?(spec_name)
 9:     return true if matches_context? && (matches_spec?(spec_name) || context_only?)
10:     return true if matches_spec?(spec_name) && spec_only?(spec_name)
11:     return false
12:   end

[Validate]