module Policy
Extends RSpec configuration with coverage tracking.
Definitions
def load_spec_files
Start coverage before loading spec files.
Signature
-
returns
Object The result of RSpec's original
load_spec_filesmethod.
Implementation
def load_spec_files
$covered.start
super
end
def covered
The active coverage configuration.
Signature
-
returns
Covered::Config The active coverage configuration.
Implementation
def covered
$covered
end
def covered=(policy)
Assign the active coverage configuration.
Signature
-
parameter
policyCovered::Config The replacement coverage configuration.
Implementation
def covered= policy
$covered = policy
end