Sha256: 0ff33d95e9fb1f9efd556deef7d9e79c26d1bdbd811778f4d555831cfc96e515

Contents?: true

Size: 541 Bytes

Versions: 10

Compression:

Stored size: 541 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'mocha'
gem 'chrisk-fakeweb'
require 'fake_web'

FakeWeb.allow_net_connect = false

$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'nytimes_articles'

API_KEY = '13e234323232222'

def init_test_key
	Nytimes::Articles::Base.api_key = API_KEY
end

def api_url_for(params = {})
	full_params = params.merge 'api-key' => API_KEY
	Nytimes::Articles::Base.build_request_url(full_params).to_s
end

module TestNytimes
	module TestArticles
	end
end

class Test::Unit::TestCase
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
harrisj-nytimes-articles-0.1.1 test/test_helper.rb
harrisj-nytimes-articles-0.1.2 test/test_helper.rb
harrisj-nytimes-articles-0.1.3 test/test_helper.rb
harrisj-nytimes-articles-0.2.0 test/test_helper.rb
harrisj-nytimes-articles-0.2.1 test/test_helper.rb
harrisj-nytimes-articles-0.3.0 test/test_helper.rb
harrisj-nytimes-articles-0.4.0 test/test_helper.rb
taylorbarstow-nytimes-articles-0.2.1 test/test_helper.rb
taylorbarstow-nytimes-articles-0.3.0 test/test_helper.rb
nytimes-articles-0.4.0 test/test_helper.rb