Sha256: 24c90a834e4238545de77fa4836abebd77943cfb2e296e6e1ff3dcfb6ad42f24
Contents?: true
Size: 699 Bytes
Versions: 1
Compression:
Stored size: 699 Bytes
Contents
testing Helene::Sdb::Base do context 'types' do setup do @a = model(:a) do attribute :x, :text end end perform = 'be able to represent text fields > 1024' should perform do text = '*' * ((1024 * 9) + 3) a = assert{ @a.create! :x => text } assert{ a.x==text } eventually_assert(perform){ a.reload; a.x==text } text = 'abc' + text + 'xyz' a = assert{ @a.create! :x => text } assert{ a.x==text } assert{ a.x.first(3)=='abc' } assert{ a.x.last(3)=='xyz' } eventually_assert(perform){ a.reload; a.x==text a.x.first(3)=='abc' a.x.last(3)=='xyz' } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ahoward-helene-0.0.3 | test/integration/sdb/types.rb |