data: fix wrap_n_pad bug

This doesn't make modifications to the original string. If only Ruby used their own convention and did str#concat! instead of str#concat

Fixes #191

[skip ci]
This commit is contained in:
Andy Meneely
2016-12-22 16:31:23 -05:00
parent db0bf38ec0
commit 3ce5d8b4eb
2 changed files with 15 additions and 7 deletions
+8
View File
@@ -246,6 +246,14 @@ Fun with UTF8! | 👊 |
╰------------------------------------╯
EOS
end
it 'does not pad the data' do
data = Squib::DataFrame.new
data['a'] = ['b', 'c']
expect(data.to_pretty_text.size).to be > 0
expect(data.columns).to eq ['a']
expect(data['a']).to eq ['b', 'c']
end
end
end