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:



39
40
41
# File 'lib/pbt/check/configuration.rb', line 39

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:



53
54
55
# File 'lib/pbt/check/configuration.rb', line 53

def configure
  yield(configuration)
end