8233c5871f
* 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
11 lines
313 B
Ruby
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
|