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