Skip to content

Commit

Permalink
Minor metaslot_spec improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurii Rashkovskii committed May 14, 2008
1 parent c3df40b commit 89185ac
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/lib/strokedb/document/metaslot_spec.rb
Expand Up @@ -19,6 +19,20 @@
@document[SomeMeta].should == "some value"
end

describe "with metaslot assigned, once saved and reloaded" do

before(:each) do
@document[SomeMeta] = "some value"
@document.save!
@document = @document.reload
end

it "should be able to read metaslot" do
@document[SomeMeta].should == "some value"
end

end



end

0 comments on commit 89185ac

Please sign in to comment.