Remove dead code
This commit is contained in:
parent
dfcabdc279
commit
05385748e5
2 changed files with 0 additions and 70 deletions
|
@ -1,37 +0,0 @@
|
|||
# encoding: utf-8
|
||||
|
||||
module Mutant
|
||||
class CLI
|
||||
class Classifier
|
||||
|
||||
# Scope classifier
|
||||
class Scope < self
|
||||
|
||||
REGEXP = /\A(?<scope>#{SCOPE_PATTERN})\z/.freeze
|
||||
|
||||
private
|
||||
|
||||
# Return matcher
|
||||
#
|
||||
# @return [Matcher]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def matcher
|
||||
Matcher::Scope.new(scope)
|
||||
end
|
||||
|
||||
# Return namespace
|
||||
#
|
||||
# @return [Class, Module]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def scope
|
||||
Classifier.constant_lookup(match[__method__].to_s)
|
||||
end
|
||||
|
||||
end # Scope
|
||||
end # Classifier
|
||||
end # CLI
|
||||
end # Mutant
|
|
@ -1,33 +0,0 @@
|
|||
# encoding: utf-8
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
describe Mutant::CLI::Classifier::Scope, '#each' do
|
||||
let(:object) { described_class.build(cache, input) }
|
||||
let(:cache) { Mutant::Cache.new }
|
||||
let(:input) { ::TestApp::Literal }
|
||||
|
||||
context 'with a block' do
|
||||
subject { object.each {} }
|
||||
|
||||
it_behaves_like 'a command method'
|
||||
|
||||
it 'yield method subjects' do
|
||||
expect { |block| object.each(&block) }
|
||||
.to yield_control.exactly(7).times
|
||||
end
|
||||
end
|
||||
|
||||
context 'without a block' do
|
||||
subject { object.each }
|
||||
|
||||
it 'returns an enumerator' do
|
||||
should be_instance_of(to_enum.class)
|
||||
end
|
||||
|
||||
it 'yield an instance subject' do
|
||||
expect { |block| object.each(&block) }
|
||||
.to yield_control.exactly(7).times
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue