Sha256: e71ede532c7f480d03c3793f409719402ea1eb6ff30dfe2a43462fe853529822
Contents?: true
Size: 669 Bytes
Versions: 4
Compression:
Stored size: 669 Bytes
Contents
require 'spec_helper' require 'overpass_api_ruby' describe OverpassAPI::QL do it "should return the right built query when no opts are passed" do overpass = OverpassAPI::QL.new built_query = overpass.build_query("a query") expect(built_query).to eq "[out:json];a query" end it "should set the right opts" do opts = {bbox: {s: 1, n: 2, w: 3, e: 4}, timeout: 1000, maxsize: 333} overpass = OverpassAPI::QL.new(opts) built_query = overpass.build_query("a query") expected_built_query = "[bbox:1,3,2,4][timeout:1000][maxsize:333][out:json];a query" expect(built_query).to eq expected_built_query end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
overpass-api-ruby-0.3 | spec/unit/ql_spec.rb |
overpass-api-ruby-0.2.3 | spec/unit/ql_spec.rb |
overpass-api-ruby-0.2.2 | spec/unit/ql_spec.rb |
overpass-api-ruby-0.2.1 | spec/unit/ql_spec.rb |