Use mutant- as main plugin require integration point

This commit is contained in:
Markus Schirp 2014-01-18 00:32:10 +01:00
parent 33c4f862cd
commit faa79a2f0a
5 changed files with 11 additions and 6 deletions

5
lib/mutant-rspec.rb Normal file
View file

@ -0,0 +1,5 @@
# encoding: UTF-8
require 'mutant/rspec'
require 'mutant/rspec/killer'
require 'mutant/rspec/strategy'

View file

@ -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'

View file

@ -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}")

View file

@ -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

View file

@ -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'