method
should
1.2.8 -
Show latest stable
-
0 notes -
Class: Kernel
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
should(matcher=nil, message=nil, &block)
public
receiver.should(matcher) => Passes if matcher.matches?(receiver) receiver.should == expected #any value => Passes if (receiver == expected) receiver.should === expected #any value => Passes if (receiver === expected) receiver.should =~ regexp => Passes if (receiver =~ regexp)
See Spec::Matchers for more information about matchers
Warning
NOTE that this does NOT support receiver.should != expected. Instead, use receiver.should_not == expected