method

should

rspec latest stable - Class: Spec::Example::ExampleMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.12) is shown here.

should(matcher=nil)
public

When should is called with no explicit receiver, the call is delegated to the subject of the example group. This could be either an explicit subject generated by calling the block passed to +ExampleGroupMethods#subject+, or, if the group is describing a class, an implicitly generated instance of that class.