Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/peck/expectations.rb
Instance Method Summary collapse
Instance Method Details
#should(*args, &block) ⇒ Object
132 133 134 135 136 137 138 139 |
# File 'lib/peck/expectations.rb', line 132 def should(*args, &block) # TODO: raise argument error when .should.should if self.kind_of?(Class) && (self < Peck::Context) Peck::Should::Specification.new(self) else Peck::Should.new(self).be(*args, &block) end end |