Sha256: 742048c2402f9bee5d386c97bfcde4046b427fdc7c69a3d25205459f7f8d8a0d
Contents?: true
Size: 821 Bytes
Versions: 1
Compression:
Stored size: 821 Bytes
Contents
require 'spec_helper' describe ActiveRoad::AccessPoint, :type => :model do let!(:origin) { point(0, 0) } let!(:pr1) { create(:physical_road, :geometry => line_string( "0 0,1 1" )) } let!(:pr2) { create(:physical_road, :geometry => line_string( "0.002 0.002,1 1" )) } let!(:pr3) { create(:physical_road, :geometry => line_string( "2 2,3 3" )) } #subject { ActiveRoad::Accesspoint.new( :location => point(0, 0), :physical_road => ab ) } describe ".from" do it "should return all access point with tags from the location" do expect( ActiveRoad::AccessPoint.from( origin ).size ).to eq(1) end end describe ".to" do it "should return all access point with tags from the location" do expect( ActiveRoad::AccessPoint.from( origin ).size ).to eq(1) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_road-0.0.3 | spec/models/active_road/access_point_spec.rb |