diff --git a/test/test/spec/nsdecimal_spec.rb b/test/test/spec/nsdecimal_spec.rb index 2ede919f..1b1440c2 100644 --- a/test/test/spec/nsdecimal_spec.rb +++ b/test/test/spec/nsdecimal_spec.rb @@ -25,6 +25,10 @@ describe 'BigDecimal' do end it 'can be created with a float' do + should.not.raise TypeError do + BigDecimal.new(0.1) + end + # Use 0.0 here because it's the only Float we can trust to not lose precision. number = 0.0 number.class.should == Float