RSpec.describe Gplaces::Place do
  subject do
    described_class.new(formatted_address: "My address",
                        geometry: { location: { lat: -33.8669330, lng: 151.1957910 } })
  end

  it "has a formatted address" do
    expect(subject.formatted_address).to eq("My address")
  end

  it "has lat and lng" do
    expect(subject.geometry.location.lat).to eq(-33.8669330)
    expect(subject.geometry.location.lng).to eq(151.1957910)
  end
end

RSpec.describe Gplaces::Place do
  subject do
    described_class.new(formatted_address: "My address",
                        geometry: { location: { lat: -33.8669330, lng: 151.1957910 } })
  end

  it "has a formatted address" do
    expect(subject.formatted_address).to eq("My address")
  end

  it "has lat and lng" do
    expect(subject.location.lat).to eq(-33.8669330)
    expect(subject.location.lng).to eq(151.1957910)
  end
end

Fix test to use location directly
Fix test to use location directly
