diff --git a/Gemfile b/Gemfile index 8bb68843..5cc2992a 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,6 @@ gemspec gem 'descendants_tracker', :git => 'https://github.com/dkubb/descendants_tracker.git' gem 'abstract_class', :git => 'https://github.com/dkubb/abstract_class.git' gem 'equalizer', :git => 'https://github.com/dkubb/equalizer.git' -gem 'anima', :git => 'https://github.com/mbj/anima.git' gem 'to_source', :git => 'https://github.com/mbj/to_source.git' gem 'melbourne', :git => 'https://github.com/mbj/melbourne.git' diff --git a/lib/mutant/runner.rb b/lib/mutant/runner.rb index 5494726c..dbcee408 100644 --- a/lib/mutant/runner.rb +++ b/lib/mutant/runner.rb @@ -1,7 +1,7 @@ module Mutant # Runner that allows to mutate an entire project class Runner - include Adamantium::Flat, Anima + include Adamantium::Flat extend MethodObject # Return killers with errors @@ -30,19 +30,14 @@ module Mutant # Initialize object # - # @param [Hash] attributes + # @param [Config] config # # @return [undefined] # # @api private # - def initialize(attributes) - attributes[:reporter] ||= Reporter::Null - attributes[:mutation_filter] ||= Mutation::Filter::ALL - - super(attributes) - - @errors = [] + def initialize(config) + @config, @errors = config, [] run end