From a432311862c80dfa657d42bb5166c47013300df2 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sat, 8 Mar 2014 17:33:46 +0000 Subject: [PATCH] Use Float#== to in rspec expectations * This fixes 1.9.3 and does IMO not lower the accurancy in specs. --- spec/unit/mutant/runner/config_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/unit/mutant/runner/config_spec.rb b/spec/unit/mutant/runner/config_spec.rb index 8c9db23e..c8581dfd 100644 --- a/spec/unit/mutant/runner/config_spec.rb +++ b/spec/unit/mutant/runner/config_spec.rb @@ -75,7 +75,7 @@ describe Mutant::Runner::Config do let(:amount_mutations) { 0 } let(:amount_kills) { 0 } - it { should be(0.0) } + it { should eql(0.0) } end context 'with one mutation' do @@ -83,12 +83,12 @@ describe Mutant::Runner::Config do context 'and one kill' do let(:amount_kills) { 1 } - it { should be(100.0) } + it { should eql(100.0) } end context 'and no kills' do let(:amount_kills) { 0 } - it { should be(0.0) } + it { should eql(0.0) } end end @@ -97,17 +97,17 @@ describe Mutant::Runner::Config do context 'and no kill' do let(:amount_kills) { 0 } - it { should be(0.0) } + it { should eql(0.0) } end context 'and some kills' do let(:amount_kills) { 2 } - it { should be(20.0) } + it { should eql(20.0) } end context 'and as many kills' do let(:amount_kills) { amount_mutations } - it { should be(100.0) } + it { should eql(100.0) } end end end