Sha256: d32234891edaf00986e507dc80b974b1543964b7bf665f28ca89c90e9d6369b5
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
module PropCheck ## # Integration with RSpec # # Currently very basic; it does two things: # 1. adds the local `forall` method to examples that calls `PropCheck.forall` # 2. adds `include PropCheck::Generators` statement. module RSpec # To make it available within examples def self.extend_object(obj) obj.instance_eval do include PropCheck::Generators end obj.define_method(:forall) do |*args, **kwargs, &block| PropCheck.forall(*args, **kwargs, &block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prop_check-0.8.0 | lib/prop_check/rspec.rb |