diff --git a/lib/mutant-rspec.rb b/lib/mutant-rspec.rb new file mode 100644 index 00000000..278a95cf --- /dev/null +++ b/lib/mutant-rspec.rb @@ -0,0 +1,5 @@ +# encoding: UTF-8 + +require 'mutant/rspec' +require 'mutant/rspec/killer' +require 'mutant/rspec/strategy' diff --git a/lib/mutant.rb b/lib/mutant.rb index 25621519..1f227620 100644 --- a/lib/mutant.rb +++ b/lib/mutant.rb @@ -134,4 +134,3 @@ require 'mutant/reporter/cli/printer/subject' require 'mutant/reporter/cli/printer/killer' require 'mutant/reporter/cli/printer/mutation' require 'mutant/zombifier' -require 'mutant/rspec' diff --git a/lib/mutant/cli.rb b/lib/mutant/cli.rb index 17429537..105f06b0 100644 --- a/lib/mutant/cli.rb +++ b/lib/mutant/cli.rb @@ -201,7 +201,7 @@ module Mutant # @api private # def use(name) - require "mutant/#{name}" + require "mutant-#{name}" @strategy = Strategy.lookup(name).new rescue LoadError $stderr.puts("Cannot load plugin: #{name.inspect}") diff --git a/lib/mutant/rspec.rb b/lib/mutant/rspec.rb index 17cbcf09..1229b292 100644 --- a/lib/mutant/rspec.rb +++ b/lib/mutant/rspec.rb @@ -1,9 +1,9 @@ +# encoding: UTF-8 + require 'rspec' -require 'mutant/rspec/killer' -require 'mutant/rspec/strategy' - module Mutant + # Rspec integration namespace module Rspec end # Rspec end # Mutant diff --git a/spec/unit/mutant/killer/rspec_spec.rb b/spec/unit/mutant/rspec/killer_spec.rb similarity index 93% rename from spec/unit/mutant/killer/rspec_spec.rb rename to spec/unit/mutant/rspec/killer_spec.rb index 964c497e..10c1363f 100644 --- a/spec/unit/mutant/killer/rspec_spec.rb +++ b/spec/unit/mutant/rspec/killer_spec.rb @@ -1,8 +1,9 @@ # encoding: utf-8 require 'spec_helper' +require 'mutant-rspec' -describe Mutant::Killer::Rspec, '.new' do +describe Mutant::Rspec::Killer, '.new' do before do pending 'dactivated'