spec/lib/generators/weights_generator_spec.rb in picky-3.2.0 vs spec/lib/generators/weights_generator_spec.rb in picky-3.3.0
- old
+ new
@@ -10,12 +10,12 @@
:d => Array.new(100),
:e => Array.new(1000)
result = generator.generate
- result[:c].should be_close 2.3, 0.011
- result[:d].should be_close 4.6, 0.011
- result[:e].should be_close 6.9, 0.011
+ result[:c].should be_within(0.011).of(2.3)
+ result[:d].should be_within(0.011).of(4.6)
+ result[:e].should be_within(0.011).of(6.9)
end
end
end
\ No newline at end of file