Reduce public interface of chain matcher

This commit is contained in:
Markus Schirp 2014-07-06 14:32:36 +00:00
parent dbafc31462
commit de6509c785
2 changed files with 1 additions and 11 deletions

View file

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

View file

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