Module: RSpec::Benchmark

Included in:
TimingMatcher::Matcher
Defined in:
lib/rspec/benchmark.rb,
lib/rspec/benchmark/version.rb,
lib/rspec/benchmark/matchers.rb,
lib/rspec/benchmark/formatter.rb,
lib/rspec/benchmark/configuration.rb,
lib/rspec/benchmark/timing_matcher.rb,
lib/rspec/benchmark/iteration_matcher.rb,
lib/rspec/benchmark/allocation_matcher.rb,
lib/rspec/benchmark/comparison_matcher.rb,
lib/rspec/benchmark/complexity_matcher.rb

Defined Under Namespace

Modules: AllocationMatcher, ComparisonMatcher, ComplexityMatcher, Formatter, IterationMatcher, Matchers, TimingMatcher Classes: Configuration

Constant Summary collapse

VERSION =
"0.6.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationRSpec::Benchmark::Configuration

Current configuration



18
19
20
# File 'lib/rspec/benchmark.rb', line 18

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Change current configuration

Examples:

RSpec::Benchmark.configure do |config|
  config.run_in_subprocess = false
end

Yields:



39
40
41
# File 'lib/rspec/benchmark.rb', line 39

def self.configure
  yield configuration
end

.reset_configurationRSpec::Benchmark::Configuration

Reset current configuration to defaults



27
28
29
# File 'lib/rspec/benchmark.rb', line 27

def self.reset_configuration
  @configuration = Configuration.new
end