Sha256: 2453305f1402a7ed29d9e8cb16b8f8b0ca8bd8ff07dbafcbc1bc46b9b92fc24e
Contents?: true
Size: 629 Bytes
Versions: 8
Compression:
Stored size: 629 Bytes
Contents
# -*- encoding : utf-8 -*- require 'spec_helper' describe "Exchange::Cachify" do describe "cachify" do context "with a big decimal" do subject { BigDecimal.new("5") } it "should marshal dump" do subject.cachify.should == Marshal.dump(subject) end end context "with a float" do subject { 0.4545 } it "should marshal dump" do subject.cachify.should == Marshal.dump(subject) end end context "with an integer" do subject { 45 } it "should marshal dump" do subject.cachify.should == Marshal.dump(subject) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems