Holds some of the state of the example (i.e. it block) that is being evaluated. See also ContextState.
# File lib/mspec/runner/example.rb, line 14 def context=(context) @description = nil @context = context end
# File lib/mspec/runner/example.rb, line 19 def describe @context.description end
# File lib/mspec/runner/example.rb, line 23 def description @description ||= "#{describe} #{@it}" end
# File lib/mspec/runner/example.rb, line 27 def filtered? incl = MSpec.retrieve(:include) || [] excl = MSpec.retrieve(:exclude) || [] included = incl.empty? || incl.any? { |f| f === description } included &&= excl.empty? || !excl.any? { |f| f === description } not included end
Generated with the Darkfish Rdoc Generator 2.