Sha256: 31a838c72ec71cfdf1e51bb33eb323d3dfa17ced9ce86526997acf5676a0856a
Contents?: true
Size: 332 Bytes
Versions: 5
Compression:
Stored size: 332 Bytes
Contents
require 'spec_helper' describe Must::Rule, "match" do specify "[OK]" do 1.must.match(0..3).should == 1 'b'.must.match('a'..'c').should == 'b' end specify "[NG]" do lambda { 1.must.match(2..3) }.should raise_error(Must::Invalid) lambda { 'a'.must.match('y'..'z') }.should raise_error(Must::Invalid) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
must-0.3.3 | spec/match_spec.rb |
must-0.3.2 | spec/match_spec.rb |
must-0.3.1 | spec/match_spec.rb |
must-0.3.0 | spec/match_spec.rb |
must-0.2.9 | spec/match_spec.rb |