Class: MinitestToRspec::Converter
- Inherits:
-
Object
- Object
- MinitestToRspec::Converter
- Defined in:
- lib/minitest_to_rspec/converter.rb
Overview
Converts strings of minitest code. Does not read or write files.
Instance Method Summary collapse
-
#convert(input, file_path = nil) ⇒ Object
-
‘input` - Contents of a ruby file.
-
-
#initialize(rails: false, mocha: false) ⇒ Converter
constructor
A new instance of Converter.
Constructor Details
Instance Method Details
#convert(input, file_path = nil) ⇒ Object
-
‘input` - Contents of a ruby file.
-
‘file_path` - Optional. Value will replace any `__FILE__` keywords in the input.
18 19 20 |
# File 'lib/minitest_to_rspec/converter.rb', line 18 def convert(input, file_path = nil) render process parse(input, file_path) end |