Sha256: f4c043bfed9771dd2efefb39b7859891ddf421c7230625bda43ee9f77f6195d2
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
require 'queencheck/rspec' describe 'QueenCheck::RSpec' do qcheck 1, :+, [Integer], {count: 5} do | result, arguments, exception | result.should == arguments[0] + 1 end qcheck 1, :/, [Integer], {count: 5} do | result, arguments, exception | if exception if exception.kind_of?(ZeroDivisionError) arguments[0].should == 0 else raise exception end else result.should == 1 / arguments[0] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
queencheck-0.1.2 | spec/queencheck/rspec_spec.rb |