Sha256: b7a2910cd041d8ad3b0cbffb43583ce85e0913f8f195db718228d534fe8e5fff

Contents?: true

Size: 702 Bytes

Versions: 9

Compression:

Stored size: 702 Bytes

Contents

require 'spec_helper'

describe 'PointShapeBuffer' do
  before(:each) do
    @shape = FileGDB::PointShapeBuffer.new
  end

  it 'gets the z value' do
    @shape.setup(9)
    @shape.z.should eq(0.0)
  end

  it 'sets the z value' do
    @shape.setup(9)
    @shape.z = 10.0
    @shape.z.should eq(10.0)
  end

  it 'gets the m value' do
    @shape.setup(11)
    @shape.m.should eq(0.0)
  end

  it 'sets the m value' do
    @shape.setup(11)
    @shape.m = 10.0
    @shape.m.should eq(10.0)
  end

  it 'gets the id value' do
    @shape.setup(11)
    lambda { @shape.id }.should raise_error
  end

  it 'sets the id value' do
    @shape.setup(11)
    lambda { @shape.id = 1 }.should raise_error
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
filegdb-1.1.1 spec/point_shape_buffer_spec.rb
filegdb-1.1.0 spec/point_shape_buffer_spec.rb
filegdb-1.0.0 spec/point_shape_buffer_spec.rb
filegdb-0.0.6 spec/point_shape_buffer_spec.rb
filegdb-0.0.5 spec/point_shape_buffer_spec.rb
filegdb-0.0.4 spec/point_shape_buffer_spec.rb
filegdb-0.0.3 spec/point_shape_buffer_spec.rb
filegdb-0.0.2 spec/point_shape_buffer_spec.rb
filegdb-0.0.1 spec/point_shape_buffer_spec.rb