Permalink
Browse files

Changes to raw table actually change internal representation.

  • Loading branch information...
lukaso committed Aug 18, 2012
1 parent 110af0f commit 6af87d047d259c442e1efd1cd684bfaef93162b8
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/table_spec.rb
View
@@ -8,6 +8,11 @@
it 'returns the raw table' do
table.raw.should == [['foo', 'bar'], ['quox', '42']]
end
+
+ it 'allows reflects changes in the raw table' do
+ table.raw[1][1] = '55'
+ table.raw.should == [['foo', 'bar'], ['quox', '55']]
+ end
end
describe '#to_a' do

0 comments on commit 6af87d0

Please sign in to comment.