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

Version Path
hoverbird-ny-times-congress-1.2.0 spec/spec_helper.rb
hoverbird-ny-times-congress-1.2.1 spec/spec_helper.rb
hoverbird-ny-times-congress-1.2.2 spec/spec_helper.rb
hoverbird-ny-times-congress-1.3.0 spec/spec_helper.rb
hoverbird-ny-times-congress-1.3.1 spec/spec_helper.rb
nytimes-congress-1.4.1 spec/spec_helper.rb
nytimes-congress-1.4.0 spec/spec_helper.rb