Sha256: 40799e8b19a066aeb496da5b99a820ef6e9e80df7a3888f7a7d120152a1211ea

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

FactoryGirl.define do

  factory :physical_road, :class => ActiveRoad::PhysicalRoad do
    sequence(:objectid) { |n| "physicalroad::#{n}" }
    logical_road
    geometry {  GeoRuby::SimpleFeatures::LineString.from_points [GeoRuby::SimpleFeatures::Point.from_x_y(0, 0, ActiveRoad.srid), GeoRuby::SimpleFeatures::Point.from_x_y(1, 1, ActiveRoad.srid)] }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_road-0.0.2 spec/factories/physical_road.rb