free_mutant/spec/unit/mutant/matcher/each_spec.rb
Dan Kubb 7293386c26 Add magic encoding header to all ruby files
* rubocop still warns about this on ruby 1.9.3, so it was fixed so
  it produces less output on travis.
2013-07-28 16:03:06 -07:00

21 lines
436 B
Ruby

# encoding: utf-8
require 'spec_helper'
# This spec is only present to ensure 100% test coverage.
# The code should not be triggered on runtime.
describe Mutant::Matcher, '#each' do
subject { object.send(:each) }
let(:object) { described_class.allocate }
it 'should raise error' do
expect do
subject
end.to raise_error(
NotImplementedError,
'Mutant::Matcher#each is not implemented'
)
end
end