free_mutant/spec/spec_helper.rb
Dan Kubb ee72d6c042 Fix rubocop warnings
* Still a few more to go, but this should be the majority of them
2013-07-28 12:16:45 -07:00

30 lines
541 B
Ruby

require 'mutant'
require 'devtools'
Devtools.init_spec_helper
$LOAD_PATH << File.join(TestApp.root, 'lib')
require 'test_app'
module Fixtures
AST_CACHE = Mutant::Cache.new
end
module ParserHelper
def generate(node)
Unparser.unparse(node)
end
def parse(string)
Parser::CurrentRuby.parse(string)
end
end
RSpec.configure do |config|
config.include(CompressHelper)
config.include(ParserHelper)
config.include(Mutant::NodeHelpers)
config.mock_with :rspec do |rspec|
rspec.syntax = [:expect, :should]
end
end