Normalize ASTs before mutating spec examples

* Reduces smantically unneded empty begin nodes etc.
* Allows to sharp specs.
This commit is contained in:
Markus Schirp 2014-04-22 17:04:25 +00:00
parent 5dc4ad2e4c
commit aa0afcd11b

View file

@ -41,7 +41,7 @@ module ParserHelper
end
def parse(string)
Parser::CurrentRuby.parse(string)
Unparser::Preprocessor.run(Parser::CurrentRuby.parse(string))
end
end