180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
# File 'lib/transpec/converter.rb', line 180
def process_rspec_configure(rspec_configure)
if need_to_modify_expectation_syntax_configuration?(rspec_configure)
rspec_configure.expectations.syntaxes = :expect
end
if need_to_modify_mock_syntax_configuration?(rspec_configure)
rspec_configure.mocks.syntaxes = :expect
end
if rspec_version.rspec_2_99? &&
configuration.convert_deprecated_method?
should_yield = configuration.add_receiver_arg_to_any_instance_implementation_block?
rspec_configure.mocks.yield_receiver_to_any_instance_implementation_blocks = should_yield
end
end
|