Module: Rcodetools::XMPRSpecFilter::OldAPI

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

old rspec, use deprecated syntax



212
213
214
# File 'lib/rcodetools/xmptestunitfilter.rb', line 212

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