test/test_helper.rb in pelusa-0.2.3 vs test/test_helper.rb in pelusa-0.2.4
- old
+ new
@@ -3,5 +3,11 @@
require 'mocha/setup'
require 'pelusa'
FIXTURES_PATH = File.dirname(__FILE__) + '/fixtures'
+
+module Pelusa
+ def self.to_ast(string)
+ ::Rubinius::ToolSets.current::ToolSet::Melbourne.parse_string(string)
+ end
+end