Class: AssertionConverter
- Inherits:
-
Object
- Object
- AssertionConverter
- Defined in:
- lib/minitest_spec_converter/assertion_converter.rb
Class Method Summary collapse
Class Method Details
.convert_assertions(content) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/minitest_spec_converter/assertion_converter.rb', line 6 def self.convert_assertions(content) buffer = Parser::Source::Buffer.new("(example)", source: content) parser = Unparser.parser ast = parser.parse(buffer) rewriter = AssertionRewriter.new rewriter.rewrite(buffer, ast) end |