Sha256: 8f5ee97865121978f63c04aac85324ccf6ed34e4d9f8b055b3a53c69203e1733
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Mutant::Mutator::Node::Generic, 'op_asgn' do let(:random_fixnum) { 5 } let(:source) { '@a.b += 1' } let(:mutations) do mutations = [] mutations << '@a.b += -1' mutations << '@a.b += 2' mutations << '@a.b += 0' mutations << '@a.b += nil' mutations << '@a += 1' mutations << '@a.b += 5' mutations << 'nil.b += 1' end before do Mutant::Random.stub(:fixnum => random_fixnum) end it_should_behave_like 'a mutator' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.3.0.rc1 | spec/unit/mutant/mutator/node/op_assgn/mutation_spec.rb |
mutant-0.3.0.beta22 | spec/unit/mutant/mutator/node/op_assgn/mutation_spec.rb |