free_mutant/spec/unit/mutant/meta/example_spec.rb
Markus Schirp 7408e86fd4 Fix coverage for Mutant::Meta namespace
* Remove unparser invariant checking, does not yield enough value
  anymore as unparser is more stable these days
2016-02-29 19:03:08 +00:00

31 lines
653 B
Ruby

RSpec.describe Mutant::Meta::Example do
let(:object) do
described_class.new(
file,
node,
mutation_nodes
)
end
let(:file) { 'foo/bar.rb' }
let(:node) { s(:true) }
let(:mutation_nodes) { [s(:nil), s(:false)] }
let(:mutations) do
mutation_nodes.map do |node|
Mutant::Mutation::Evil.new(object, node)
end
end
describe '#source' do
subject { object.source }
it { should eql('true') }
end
describe '#verification' do
subject { object.verification }
it { should eql(Mutant::Meta::Example::Verification.new(object, mutations)) }
end
end