Sha256: 16099b6c874d3472d6cb683c9167cb41c7013534feb9fd6763f411215eec40cb

Contents?: true

Size: 325 Bytes

Versions: 24

Compression:

Stored size: 325 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Mutant::Mutator::Node::Literal, 'fixnum' do
  let(:random_fixnum) { 5 }

  let(:source) { '10' }

  let(:mutations) do
    %W(nil 0 1 #{random_fixnum} -10 9 11)
  end

  before do
    Mutant::Random.stub(fixnum: random_fixnum)
  end

  it_should_behave_like 'a mutator'
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
mutant-0.5.12 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.11 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.10 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.9 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.8 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.7 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.6 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.5 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.4 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.3 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.2 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.1 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.5.0 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.3.6 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.3.5 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.3.4 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.3.3 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.3.2 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.3.1 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
mutant-0.3.0 spec/unit/mutant/mutator/node/literal/fixnum_spec.rb