Sha256: 46a2186e521113ee7dfb33b0e12c203a0330050dce5c404432694b270e9ec4eb

Contents?: true

Size: 714 Bytes

Versions: 6

Compression:

Stored size: 714 Bytes

Contents

RSpec.describe Mutant::Meta::Example do
  let(:object) do
    described_class.new(
      file:      file,
      node:      node,
      node_type: node.type,
      expected:  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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.8.16 spec/unit/mutant/meta/example_spec.rb
mutant-0.8.15 spec/unit/mutant/meta/example_spec.rb
mutant-0.8.14 spec/unit/mutant/meta/example_spec.rb
mutant-0.8.13 spec/unit/mutant/meta/example_spec.rb
mutant-0.8.12 spec/unit/mutant/meta/example_spec.rb
mutant-0.8.11 spec/unit/mutant/meta/example_spec.rb