Sha256: 7df241c180b1f2f31780dff5ca913f4971df7529c6b317552d0442289ad9cb21

Contents?: true

Size: 706 Bytes

Versions: 12

Compression:

Stored size: 706 Bytes

Contents

require 'spec_helper'

describe Mutant::Subject, '#mutations' do
  subject { object.mutations }

  let(:class_under_test) do
    mutation_a, mutation_b = self.mutation_a, self.mutation_b
    Class.new(described_class) do
      define_method(:generate_mutations) do |emitter|
        emitter << mutation_a
        emitter << mutation_b
      end
    end
  end

  let(:object)     { class_under_test.new(context, node) }
  let(:node)       { double('Node')                      }
  let(:context)    { double('Context')                   }
  let(:mutation_a) { double('Mutation A')                }
  let(:mutation_b) { double('Mutation B')                }

  it { should eql([mutation_a, mutation_b]) }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mutant-0.5.24 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.5.23 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.5.22 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.5.21 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.5.20 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.3.0.beta21 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.3.0.beta20 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.3.0.beta19 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.3.0.beta18 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.3.0.beta17 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.3.0.beta16 spec/unit/mutant/subject/mutations_spec.rb
mutant-0.3.0.beta15 spec/unit/mutant/subject/mutations_spec.rb