free_mutant/spec/unit/mutant/matcher/static_spec.rb

12 lines
313 B
Ruby
Raw Normal View History

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