Module: REnvy
- Defined in:
- lib/renvy.rb,
lib/renvy/version.rb
Overview
Rspec-like matching for Test::Unit.
Usage
obj.should == 2
obj.should ~= /regex/
obj.should != 3
obj.should.be.true!
obj.should.be.false!
# Anything else will just pass thru:
obj.should.nil? # same as: assert obj.nil?
obj.should.be.nil? # same as: assert obj.nil?
obj.should.respond_to?(:freeze)
# You can also use should_not:
obj.should_not == 3
obj.should_not.be.nil?
should.raise(Error) { lol }
should_not.raise { puts "hi" }
Defined Under Namespace
Classes: Should
Class Method Summary collapse
Class Method Details
.version ⇒ Object
2 3 4 |
# File 'lib/renvy/version.rb', line 2 def self.version "0.3.0" end |