should(matcher=nil, message=nil)
When should is called with no explicit receiver, the call is delegated to the object returned by subject. Combined with an implicit subject (see subject), this supports very concise expressions.
describe Person do it { should be_eligible_to_vote } end
# File lib/spec/example/subject.rb, line 90 def should(matcher=nil, message=nil) self == subject ? self.__should_for_example_group__(matcher) : subject.should(matcher,message) end