Class Object
In: lib/test/spec.rb
Parent: Object

Methods

should  

Public Instance methods

[Source]

     # File lib/test/spec.rb, line 472
472:   def should(*args)
473:     case args.size
474:     when 0
475:       Test::Spec::Should.new(self)
476:     when 1
477:       Test::Spec::Should.new(self).pass(args.first)
478:     else
479:       raise ArgumentError, "Object#should takes zero or one argument(s)."
480:     end
481:   end

[Validate]