Sha256: fdd6bf51aaccd25dba77f4e244c68699bf108293f10b57729194b3d4a7b75da1

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'meme'
require 'spec'
require 'spec/autorun'
require 'open-uri'
require 'json'
require 'fakeweb'

Spec::Runner.configure do |config|
end

def load_fixture(name)
  File.join(File.expand_path(File.dirname(__FILE__)), '/fixtures', name)
end

def fake_web(query, fixture)
  url = URI.escape("https://query.yahooapis.com/v1/public/yql?q=#{query}&format=json")
  FakeWeb.register_uri(:get, url, :body => load_fixture(fixture))
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
meme-0.3.0 spec/spec_helper.rb
meme-0.2.1 spec/spec_helper.rb
meme-0.2.0 spec/spec_helper.rb