Skip to content

Commit

Permalink
Add a pending spec
Browse files Browse the repository at this point in the history
  • Loading branch information
smtlaissezfaire committed Nov 3, 2009
1 parent 2355d3a commit 5d97ca0
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions spec/odb/integration/rewrite_array_spec.rb
@@ -0,0 +1,44 @@
require "spec_helper"

module Odb
describe "Rewriting an array" do
before do
FakeFS.activate!
Odb.init "/"
Odb.path = "/"
end

after do
FakeFS::FileSystem.clear
FakeFS.deactivate!
end

it "should be able to refetch the array" do
obj = "foo"
a = [obj]

oid = Odb::Object.write(a)

array = Odb::Object.read(oid)

oid = Odb::Object.write(array)

array.first.should == "foo"
end

it "should not change the object id" do
pending 'FIXME' do
obj = "foo"
a = [obj]

oid1 = Odb::Object.write(a)

array = Odb::Object.read(oid1)

oid2 = Odb::Object.write(array)

oid1.should == oid2
end
end
end
end

0 comments on commit 5d97ca0

Please sign in to comment.