Sha256: 0e1fdbcc3fd821e53eed648f3a982087f7ac37d27ca8f5a4822b9ecc2deea8b8

Contents?: true

Size: 1.05 KB

Versions: 13

Compression:

Stored size: 1.05 KB

Contents

# encoding: utf-8

require 'spec_helper'

describe Mutant::Mutation do

  let(:class_under_test) { Class.new(described_class) { memoize :identification }             }
  let(:object)           { class_under_test.new(mutation_subject, Mutant::NodeHelpers::N_NIL) }
  let(:mutation_subject) { double('Subject', identification: 'subject', source: 'original')   }
  let(:node)             { double('Node')                                                     }

  describe '#code' do
    subject { object.code }

    it { should eql('8771a') }

    it_should_behave_like 'an idempotent method'
  end

  describe '#original_source' do
    subject { object.original_source }

    it { should eql('original') }

    it_should_behave_like 'an idempotent method'
  end

  describe '#source' do
    subject { object.source }

    it { should eql('nil') }

    it_should_behave_like 'an idempotent method'
  end

  describe '#identification' do

    subject { object.identification }

    it { should eql('subject:8771a') }

    it_should_behave_like 'an idempotent method'
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mutant-0.5.12 spec/unit/mutant/mutation_spec.rb
mutant-0.5.11 spec/unit/mutant/mutation_spec.rb
mutant-0.5.10 spec/unit/mutant/mutation_spec.rb
mutant-0.5.9 spec/unit/mutant/mutation_spec.rb
mutant-0.5.8 spec/unit/mutant/mutation_spec.rb
mutant-0.5.7 spec/unit/mutant/mutation_spec.rb
mutant-0.5.6 spec/unit/mutant/mutation_spec.rb
mutant-0.5.5 spec/unit/mutant/mutation_spec.rb
mutant-0.5.4 spec/unit/mutant/mutation_spec.rb
mutant-0.5.3 spec/unit/mutant/mutation_spec.rb
mutant-0.5.2 spec/unit/mutant/mutation_spec.rb
mutant-0.5.1 spec/unit/mutant/mutation_spec.rb
mutant-0.5.0 spec/unit/mutant/mutation_spec.rb