Sha256: 0bc8d6fce2e813d4ed94ee48c24bf29b17459b9ff051397e01b29bdaf297f874
Contents?: true
Size: 1013 Bytes
Versions: 6
Compression:
Stored size: 1013 Bytes
Contents
RSpec.describe Mutant::Mutation do class TestMutation < Mutant::Mutation SYMBOL = 'test'.freeze end let(:object) { TestMutation.new(mutation_subject, Mutant::AST::Nodes::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('test:subject:8771a') } it_should_behave_like 'an idempotent method' end end
Version data entries
6 entries across 6 versions & 1 rubygems