Sha256: b083bc40d3ce2aaed28f736928c1c903a7e2946b51bb88679510f66f7cde0faa
Contents?: true
Size: 513 Bytes
Versions: 12
Compression:
Stored size: 513 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'ice_nine/freezer' require 'ice_nine/freezer/no_freeze' require 'ice_nine/freezer/numeric' require 'bigdecimal' describe IceNine::Freezer::Numeric, '.deep_freeze' do subject { object.deep_freeze(value) } let(:object) { described_class } [0.0, 0, 0x7fffffffffffffff, BigDecimal('0')].each do |value| context "with a #{value.class} object" do let(:value) { value } it_behaves_like 'IceNine::Freezer::NoFreeze.deep_freeze' end end end
Version data entries
12 entries across 10 versions & 4 rubygems