class Transpec::Syntax::RaiseError::RecordBuilder
Public Instance Methods
new_syntax()
click to toggle source
# File lib/transpec/syntax/raise_error.rb, line 55 def new_syntax 'expect { }.not_to raise_error' end
old_syntax()
click to toggle source
# File lib/transpec/syntax/raise_error.rb, line 42 def old_syntax syntax = 'expect { }.not_to raise_error(' if raise_error.specific_class? syntax << 'SpecificErrorClass' syntax << ', ' if raise_error.specific_message? end syntax << 'message' if raise_error.specific_message? syntax << ')' end