Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/test/spec.rb
Overview
– Global helpers
Instance Method Summary collapse
Instance Method Details
#should(*args) ⇒ Object
631 632 633 634 635 636 637 638 639 640 |
# File 'lib/test/spec.rb', line 631 def should(*args) case args.size when 0 Test::Spec::Should.new(self) when 1 Test::Spec::Should.new(self).pass(args.first) else raise ArgumentError, "Object#should takes zero or one argument(s)." end end |