Sha256: f06eb99adfd6005fdb360a9d1e0c5c27dcdfa943cff6b19e6d32f6a6d55ec392

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

require 'spec_helper'
require 'overpass_api_ruby'

describe OverpassAPI::QL do
  it "should return the right elements" do
    options={:bbox => {:s => -34.705448, :n => -34.526562,
                       :w => -58.531471, :e => -58.335159},
                       :timeout => 900,
                       :maxsize => 10000}

    overpass = OverpassAPI::QL.new(options)

    ba_query = "rel['route'='subway'];(._;>;);out body;"

    expect(overpass.query(ba_query)[:elements]).to be_a(Array)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
overpass-api-ruby-0.3 spec/integration/ql_spec.rb
overpass-api-ruby-0.2.3 spec/integration/ql_spec.rb
overpass-api-ruby-0.2.2 spec/integration/ql_spec.rb