Skip to content

Commit

Permalink
Replace lng with lon
Browse files Browse the repository at this point in the history
  • Loading branch information
syabruk committed Jan 16, 2024
1 parent 30f1f4e commit 854520f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec/query/request/filter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
end

context 'when value is spatial rectangle' do
let(:upper_right) { Solr::SpatialPoint.new(lat: 1.0, lng: 2.0) }
let(:lower_left) { Solr::SpatialPoint.new(lat: 3.0, lng: 4.0) }
let(:upper_right) { Solr::SpatialPoint.new(lat: 1.0, lon: 2.0) }
let(:lower_left) { Solr::SpatialPoint.new(lat: 3.0, lon: 4.0) }
let(:spatial_rectangle) { Solr::SpatialRectangle.new(upper_right: upper_right, lower_left: lower_left) }

subject { described_class.new(type: :equal, field: :field, value: spatial_rectangle).to_solr_s }
Expand Down
2 changes: 1 addition & 1 deletion spec/spatial_point_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
RSpec.describe Solr::SpatialPoint do
describe '#to_solr_s' do
it 'returns a solr string' do
expect(described_class.new(lat: 1.0, lng: 2.0).to_solr_s).to eq('1.0,2.0')
expect(described_class.new(lat: 1.0, lon: 2.0).to_solr_s).to eq('1.0,2.0')
end
end
end
4 changes: 2 additions & 2 deletions spec/spatial_rectangle_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
describe '#to_solr_s' do
it 'returns a solr string' do
expect(described_class.new(
upper_right: Solr::SpatialPoint.new(lat: 1.0, lng: 2.0),
lower_left: Solr::SpatialPoint.new(lat: 3.0, lng: 4.0)
upper_right: Solr::SpatialPoint.new(lat: 1.0, lon: 2.0),
lower_left: Solr::SpatialPoint.new(lat: 3.0, lon: 4.0)
).to_solr_s).to eq('[3.0,4.0 TO 1.0,2.0]')
end
end
Expand Down

0 comments on commit 854520f

Please sign in to comment.