Class: Peck::Should::Specification

Inherits:
Proxy show all
Defined in:
lib/peck/expectations.rb

Overview

A Specification is a proxy object which eventually generates a specification on the context. This is used by the should method in the context class.

Instance Attribute Summary

Attributes inherited from Proxy

#block, #context, #negated

Instance Method Summary collapse

Methods inherited from Proxy

#initialize

Constructor Details

This class inherits a constructor from Peck::Should::Proxy

Instance Method Details

#notObject



22
23
24
25
# File 'lib/peck/expectations.rb', line 22

def not
  @negated = !@negated
  self
end