free_mutant/spec/spec_helper.rb
Markus Schirp 8a6a51fd08 Add support for --fail-fast flag
* Some long planned runner design changes.
* It now also uses the emitter pattern
2013-07-15 01:17:15 +02:00

30 lines
534 B
Ruby

require 'mutant'
require 'devtools'
Devtools.init_spec_helper
$: << 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 |config|
config.syntax = [:expect, :should]
end
end