Sha256: 840fc10e7dd67a3e408652dfd63e860de4b866f9aa2e741be095ec7f002a713e
Contents?: true
Size: 619 Bytes
Versions: 6
Compression:
Stored size: 619 Bytes
Contents
# Bundler.setup require 'rubygems' require './lib/geoloqi.rb' require 'minitest/autorun' require 'wrong' require 'wrong/adapters/minitest' require 'webmock' CLIENT_ID = 'client_id1234' CLIENT_SECRET = 'client_secret1234' ACCESS_TOKEN = 'access_token1234' def auth_headers(access_token='access_token1234') {'Content-Type' => 'application/json', 'User-Agent' => "geoloqi-ruby #{Geoloqi.version}", 'Accept' => 'application/json', 'Authorization' => "OAuth #{access_token}"} end def api_url(path); "#{Geoloqi.api_url}/#{Geoloqi.api_version}/#{path}" end Wrong.config.alias_assert :expect include WebMock::API
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
geoloqi-0.9.33 | spec/env.rb |
geoloqi-0.9.32 | spec/env.rb |
geoloqi-0.9.31 | spec/env.rb |
geoloqi-0.9.30 | spec/env.rb |
geoloqi-0.9.28 | spec/env.rb |
geoloqi-0.9.27 | spec/env.rb |