class RSpec::SimpleCov::Configuration

Attributes

backtrace[RW]
caller_path[RW]
context_text[RW]
described_thing[RW]
test_case_text[RW]

Public Class Methods

new( simplecov_instance, backtrace = [], &block ) click to toggle source
# File lib/rspec/simplecov/configuration.rb, line 20
def initialize( simplecov_instance, backtrace = [],  &block )
  @described_thing = simplecov_instance
  
  @caller_path = backtrace[0].split(':').first
  @backtrace = backtrace

  @context_text = "#minimum_coverage"
  @test_case_text = "must be at least #{simplecov_instance.minimum_coverage}%"

  Docile.dsl_eval( self, &block ) if block_given?
end

Public Instance Methods

context(text) click to toggle source
# File lib/rspec/simplecov/configuration.rb, line 12
def context text
  @context_text = text
end
describe(thing) click to toggle source
# File lib/rspec/simplecov/configuration.rb, line 8
def describe thing
  @described_thing = thing
end
it(what) click to toggle source
# File lib/rspec/simplecov/configuration.rb, line 16
def it what
  @test_case_text = what
end