Skip to content

Commit

Permalink
Fixed some typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
TuckerJD committed Mar 28, 2014
1 parent 498206f commit b4e2218
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/models/geographic_item_spec.rb
Expand Up @@ -621,8 +621,8 @@
end

specify '#ordered_by_shortest_distance_from orders objects by distance from passed object' do
#expect(GeographicItem.ordered_by_shortest_distance_from('line_string', @p3).limit(1).to_a).to eq([@f2])
#expect(GeographicItem.ordered_by_shortest_distance_from('polygon', @p3).limit(3).to_a).to eq([@k, @e5, @e3])
expect(GeographicItem.ordered_by_shortest_distance_from('line_string', @p3).limit(2).to_a).to eq([@outer_limits, @l])
expect(GeographicItem.ordered_by_shortest_distance_from('polygon', @p3).limit(3).to_a).to eq([@k, @e5, @e3])
expect(GeographicItem.ordered_by_shortest_distance_from('multi_polygon', @p3).limit(3).to_a).to eq([@g])
expect(GeographicItem.ordered_by_shortest_distance_from('point', @p3).limit(3).to_a).to eq([@p2, @p1, @p4])
end
Expand Down Expand Up @@ -780,7 +780,7 @@ def generate_test_objects
@c1, @c2, @c3, @c,
@d,
@e1, @e2, @e3, @e4, @e5, @e,
@f1, @f1, @f,
@f1, @f2, @f,
@g1, @g2, @g3, @g,
@h,
@i,
Expand All @@ -789,6 +789,8 @@ def generate_test_objects
@l,
@all_items, @outer_limits].map(&:save!)

=begin
puts "#{@r2020.id} = @r2020"
puts "#{@r2022.id} = @r2022"
puts "#{@r2024.id} = @r2024"
Expand All @@ -814,6 +816,7 @@ def generate_test_objects
@all_items, @outer_limits].each { |item|
puts "#{item.id}: #{item}"
}
=end

end

Expand Down

0 comments on commit b4e2218

Please sign in to comment.