Showing 1 of 1 files from the diff.
@@ -865,9 +865,9 @@
Loading
865 | 865 | end |
|
866 | 866 | ||
867 | 867 | specify ' orders objects by distance from passed object' do |
|
868 | - | expect(GeographicItem.ordered_by_shortest_distance_from('multi_polygon', p3) |
|
869 | - | .limit(3).to_a) |
|
870 | - | .to eq([new_box_e, new_box_b, new_box_a]) |
|
868 | + | subject = GeographicItem.ordered_by_shortest_distance_from('multi_polygon', p3).limit(3).to_a |
|
869 | + | expect(subject[0..1]).to contain_exactly(new_box_e, new_box_b) # Both boxes are at same distance from p3 |
|
870 | + | expect(subject[2..]).to eq([new_box_a]) |
|
871 | 871 | end |
|
872 | 872 | ||
873 | 873 | specify ' orders objects by distance from passed object' do |
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.