Reduce public interface of chain matcher
This commit is contained in:
parent
dbafc31462
commit
de6509c785
2 changed files with 1 additions and 11 deletions
|
@ -2,7 +2,7 @@ module Mutant
|
|||
class Matcher
|
||||
# A chain of matchers
|
||||
class Chain < self
|
||||
include Concord::Public.new(:matchers)
|
||||
include Concord.new(:matchers)
|
||||
|
||||
# Enumerate subjects
|
||||
#
|
||||
|
|
|
@ -32,14 +32,4 @@ describe Mutant::Matcher::Chain do
|
|||
expect { subject }.to change { yields }.from([]).to([subject_a, subject_b])
|
||||
end
|
||||
end
|
||||
|
||||
describe '#matchers' do
|
||||
subject { object.matchers }
|
||||
|
||||
let(:matchers) { double('Matchers') }
|
||||
|
||||
it { should be(matchers) }
|
||||
|
||||
it_should_behave_like 'an idempotent method'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue