Module: Pbt::Check::ConfigurationMethods

Included in:
Pbt
Defined in:
lib/pbt/check/configuration.rb

Instance Method Summary collapse

Instance Method Details

#configurationConfiguration

Return the current configuration. If you modify the configuration, it will affect all future property-based tests.

Examples:

config = Pbt.configuration
config.num_runs = 20

Returns:



42
43
44
# File 'lib/pbt/check/configuration.rb', line 42

def configuration
  @configuration ||= Configuration.new
end

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

Return the current configuration. If you modify the configuration, it will affect all future property-based tests.

Examples:

Pbt.configure do |config|
  config.num_runs = 20
end

Yields:

Yield Parameters:



56
57
58
# File 'lib/pbt/check/configuration.rb', line 56

def configure
  yield(configuration)
end