Module: Rcodetools::XMPRSpecFilter::NewAPI

Defined in:
lib/rcodetools/xmptestunitfilter.rb

Defined Under Namespace

Modules: Poetry, WithParentheses

Instance Method Summary collapse

Instance Method Details

#raise_assertion(expression, exceptions, index) ⇒ Object



153
154
155
# File 'lib/rcodetools/xmptestunitfilter.rb', line 153

def raise_assertion(expression, exceptions, index)
  ["lambda{#{expression}}.should raise_error(#{exceptions[index][0]})"]
end