Sha256: 9e96c1e755ccbad504b39a17835e9c614184506bf61a9e890a3b704a3711566f
Contents?: true
Size: 834 Bytes
Versions: 3
Compression:
Stored size: 834 Bytes
Contents
require 'spec/spec_helper' describe "Scrooge::Tracker::Base singleton" do it "should be able to yield an instance from given Marshalled data" do lambda{ Scrooge::Tracker::Base.load( [] ) }.should raise_error( Scrooge::Tracker::Base::NotImplemented ) end end describe Scrooge::Tracker::Base do before(:each) do @base = Scrooge::Tracker::Base.new end it "should have a numeric representation" do @base.to_i.should equal(0) end it "should be able to dump itself to serializeable representation" do lambda{ @base.marshal_dump }.should raise_error( Scrooge::Tracker::Base::NotImplemented ) end it "should be able to restore itself from a serializeable representation" do lambda{ @base.marshal_load( '' ) }.should raise_error( Scrooge::Tracker::Base::NotImplemented ) end end
Version data entries
3 entries across 3 versions & 1 rubygems