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