module Geonames
  RSpec.describe Response do
    let(:response) { Response.new(data) }

    let(:data) {
      {
        status: {},
        total_results_count: 2,
        geonames: [{},{}],
      }
    }

#   describe '#status' do
#     subject { response.status }

#     before do
#       allow(Geonames::Status).to receive(:new).with({}) { status }
#     end

#     let(:status) { double('Geonames::Status') }

#     it { is_expected.to eql(status) }
#   end

#   describe '#total_results_count' do
#     subject { response.total_results_count }

#     it { is_expected.to eql(2) }
#   end

#   describe '#geonames' do
#     subject { response.geonames }

#     before do
#       allow(Geonames::Placename).to receive(:new).with({}) { placename }
#     end

#     let(:placename) { double('Geonames::Placename') }

#     it { is_expected.to eql([placename, placename]) }
#   end
  end
end
