spec/lib/generators/weights/logarithmic_spec.rb in picky-3.6.1 vs spec/lib/generators/weights/logarithmic_spec.rb in picky-3.6.2
- old
+ new
@@ -16,10 +16,10 @@
end
it 'is 0 for 1' do
logarithmic.weight_for(1).should == 0
end
it 'is log(x) for x' do
- logarithmic.weight_for(1234).should == Math.log(1234)
+ logarithmic.weight_for(1234).should == Math.log(1234).round(3)
end
end
end
\ No newline at end of file