Sha256: f24e05a503991079df6db7d8cc4cc7378679624e267f00c20694e73162dda2a8
Contents?: true
Size: 572 Bytes
Versions: 24
Compression:
Stored size: 572 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Mutant::Mutator::Node::OpAsgn, 'and_asgn' do let(:random_fixnum) { 5 } let(:random_string) { 'random' } let(:source) { 'a &&= 1' } let(:mutations) do mutations = [] mutations << 'srandom &&= 1' mutations << 'a &&= nil' mutations << 'a &&= 0' mutations << 'a &&= -1' mutations << 'a &&= 2' mutations << 'a &&= 5' mutations << 'nil' end before do Mutant::Random.stub(fixnum: random_fixnum, hex_string: random_string) end it_should_behave_like 'a mutator' end
Version data entries
24 entries across 24 versions & 1 rubygems