spec/candy/array_spec.rb in candy-0.2.7 vs spec/candy/array_spec.rb in candy-0.2.8
- old
+ new
@@ -40,9 +40,17 @@
it "cascades deeply" do
@this.bits.push [5, 11, {foo: [:bar]}]
that = Zagnut(@this.id)
that.bits[3][2][:foo][0].should == :bar
end
+
+ # Github issue #11
+ it "can be updated after load" do
+ that = Zagnut(@this.id)
+ that.bits << 'schadenfreude'
+ @this.refresh
+ @this.bits[3].should == 'schadenfreude'
+ end
after(:each) do
Zagnut.collection.remove
end
\ No newline at end of file