Class: Object

Inherits:
BasicObject
Defined in:
lib/peck/expectations.rb

Instance Method Summary collapse

Instance Method Details

#should(*args, &block) ⇒ Object



149
150
151
152
153
154
155
# File 'lib/peck/expectations.rb', line 149

def should(*args, &block)
  if self.kind_of?(Class) && (self < Peck::Context)
    Peck::Should::Specification.new(self)
  else
    Peck::Should.new(self).be(*args, &block)
  end
end