free_mutant/spec/unit/mutant/matcher/static_spec.rb
Markus Schirp 8233c5871f Reduce matcher interface
* New primary interface #call makes specs and implementations much
  easier
* We had #each mostly for historical reasons that are not relevant
  anymore
* Mutation covers the Mutant::Matcher namespace
2015-10-28 20:13:00 +00:00

11 lines
313 B
Ruby

RSpec.describe Mutant::Matcher::Static, '#call' do
let(:object) { described_class.new(subjects) }
let(:env) { instance_double(Mutant::Env) }
let(:subjects) { instance_double(Array) }
subject { object.call(env) }
it 'returns its predefined subjects' do
should be(subjects)
end
end