Sha256: a3bafa7812004f1b6e0a2461aa51e5defbfc747e987b4bf913a53ccb83a691e1
Contents?: true
Size: 459 Bytes
Versions: 7
Compression:
Stored size: 459 Bytes
Contents
require File.dirname(__FILE__) + '/../lib/ny-times-congress' require File.dirname(__FILE__) + '/example_data/example_data' require "rubygems" require "spec" require 'fake_web' gem 'rr' include NYTimes::Congress API_KEY = 'blahblah' Base.api_key = API_KEY Spec::Runner.configure do |config| config.mock_with :rr end def api_url_for(path, params = {}) full_params = params.merge 'api-key' => API_KEY Base.build_request_url(path, full_params).to_s end
Version data entries
7 entries across 7 versions & 2 rubygems