Sha256: 60f6627d1b3d0214e7fc74fa6d91b5b618a319cb89a3bc77b0911813a81088f0

Contents?: true

Size: 588 Bytes

Versions: 2

Compression:

Stored size: 588 Bytes

Contents

require 'spec/spec_helper'

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

2 entries across 2 versions & 1 rubygems

Version Path
methodmissing-scrooge-1.0.0 spec/units/scrooge/tracker/base_spec.rb
methodmissing-scrooge-1.0.1 spec/units/scrooge/tracker/base_spec.rb