Sha256: e1f26269145d674b692d03eb2a7450c5476473dfc95d28499ccc04316a863bf8
Contents?: true
Size: 720 Bytes
Versions: 8
Compression:
Stored size: 720 Bytes
Contents
require 'spec_helper' describe 'FieldInfo' do before(:each) do delete_database rescue nil @db = create_database @table = @db.create_table('', table_definition) @info = @table.get_field_information end after(:each) do @db.close if @db delete_database end it 'gets the field count' do @info.get_field_count.should eq(3) end it 'gets the field name' do @info.get_field_name(2).should eq('string_field') end it 'gets the field type' do @info.get_field_type(2).should eq(4) end it 'gets the field length' do @info.get_field_length(2).should eq(4000) end it 'gets the field nullability' do @info.get_field_is_nullable(2).should eq(true) end end
Version data entries
8 entries across 8 versions & 1 rubygems