Sha256: 8009e713cf7cdbf0f4121ba66a2c9986451297dde177ccdb261c83eb0aeca8de
Contents?: true
Size: 538 Bytes
Versions: 22
Compression:
Stored size: 538 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' mutations << 'nil' end before do Mutant::Random.stub(fixnum: random_fixnum) end it_should_behave_like 'a mutator' end
Version data entries
22 entries across 22 versions & 1 rubygems