Method: Transpec::Converter#process_should

Defined in:
lib/transpec/converter.rb

#process_should(should) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
# File 'lib/transpec/converter.rb', line 48

def process_should(should)
  if configuration.convert_should?
    should.expectize!(
      configuration.negative_form_of_to,
      configuration.parenthesize_matcher_arg?
    )
  end

  process_have(should.have_matcher)
  process_raise_error(should.raise_error_matcher)
end