Module: PropCheck

Extended by:
PropCheck
Included in:
PropCheck
Defined in:
lib/prop_check.rb,
lib/prop_check/helper.rb,
lib/prop_check/version.rb,
lib/prop_check/property.rb,
lib/prop_check/generator.rb,
lib/prop_check/lazy_tree.rb,
lib/prop_check/generators.rb,
lib/prop_check/property/configuration.rb

Overview

Main module of the PropCheck library.

You probably want to look at the documentation of PropCheck::Generator and PropCheck::Generators to find out more about how to use generators.

Common usage is to call `extend PropCheck` in your (testing) modules.

This will:

  1. Add the local method `forall` which will call `PropCheck.forall`

  2. `include PropCheck::Generators`.

Defined Under Namespace

Modules: Errors, Generators, Helper Classes: Generator, Hooks, LazyTree, Property

Constant Summary collapse

VERSION =
'0.14.1'

Instance Method Summary collapse

Instance Method Details

#forall(*args, **kwargs, &block) ⇒ Object

Runs a property.

See the README for more details.


33
34
35
# File 'lib/prop_check.rb', line 33

def forall(*args, **kwargs, &block)
  PropCheck::Property.forall(*args, **kwargs, &block)
end