Use mutant- as main plugin require integration point
This commit is contained in:
parent
33c4f862cd
commit
faa79a2f0a
5 changed files with 11 additions and 6 deletions
5
lib/mutant-rspec.rb
Normal file
5
lib/mutant-rspec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
# encoding: UTF-8
|
||||
|
||||
require 'mutant/rspec'
|
||||
require 'mutant/rspec/killer'
|
||||
require 'mutant/rspec/strategy'
|
|
@ -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'
|
||||
|
|
|
@ -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}")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
Loading…
Reference in a new issue