Class: Object

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

Instance Method Summary collapse

Instance Method Details

#should(*args, &block) ⇒ Object



135
136
137
138
139
140
141
# File 'lib/peck/expectations.rb', line 135

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