Sha256: 81e282f7fa8f0b589a11c338e0433ee55c123a2401b2cffffbbedd706bab22ef

Contents?: true

Size: 835 Bytes

Versions: 4

Compression:

Stored size: 835 Bytes

Contents

require 'filegdb'

RSpec.configure do |config|
  config.color = true
  config.tty = true
  config.formatter = :documentation
end

TEST_FILE_NAME = 'testfile.gdb'

def data_directory
  File.join(File.dirname(__FILE__), 'data')
end

def table_definition
  File.read(File.join(data_directory, 'table_definition.xml'))
end

def feature_dataset_definition
  File.read(File.join(data_directory, 'feature_dataset_definition.xml'))
end

def domain_definition
  File.read(File.join(data_directory, 'domain_definition.xml'))
end

def domain_definition_altered
  File.read(File.join(data_directory, 'domain_definition_altered.xml'))
end

def create_database
  FileGDB::Geodatabase.create(TEST_FILE_NAME)
end

def open_database
  FileGDB::Geodatabase.open(TEST_FILE_NAME)
end

def delete_database
  FileGDB::Geodatabase.delete(TEST_FILE_NAME)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
filegdb-1.1.0 spec/spec_helper.rb
filegdb-1.0.0 spec/spec_helper.rb
filegdb-0.0.6 spec/spec_helper.rb
filegdb-0.0.5 spec/spec_helper.rb