2012-07-23 22:54:35 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
# This spec is only present to ensure 100% test coverage.
|
|
|
|
# The code should not be triggered on runtime.
|
|
|
|
|
2012-07-31 04:10:37 +02:00
|
|
|
describe Mutant::Matcher, '#each' do
|
2012-07-23 22:54:35 +02:00
|
|
|
subject { object.send(:each) }
|
|
|
|
|
|
|
|
let(:object) { described_class.allocate }
|
|
|
|
|
|
|
|
it 'should raise error' do
|
2012-07-31 04:10:37 +02:00
|
|
|
expect { subject }.to raise_error(NotImplementedError, 'Mutant::Matcher#each is not implemented')
|
2012-07-23 22:54:35 +02:00
|
|
|
end
|
|
|
|
end
|