Sha256: 6761a05997ab722106c114b12e910e2fde949c3621255f977d480fbdad0c16a4

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'fakeweb'
require 'redgreen'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'domainr'

FakeWeb.allow_net_connect = false

FakeWeb.register_uri(:get, "http://domai.nr/api/json/info?q=domai.nr", :response => File.join(File.dirname(__FILE__), 'fixtures', 'info.json'), :content_type => "text/javascript+json; charset=utf-8", :status => ["200", "OK"])
FakeWeb.register_uri(:get, "http://domai.nr/api/json/info?q=d", :response => File.join(File.dirname(__FILE__), 'fixtures', 'empty_info.json'), :content_type => "text/javascript+json; charset=utf-8", :status => ["200", "OK"])
FakeWeb.register_uri(:get, "http://domai.nr/api/json/search?q=domainr", :response => File.join(File.dirname(__FILE__), 'fixtures', 'search.json'), :content_type => "text/javascript+json; charset=utf-8", :status => ["200", "OK"])
FakeWeb.register_uri(:get, "http://domai.nr/api/json/search?q=", :response => File.join(File.dirname(__FILE__), 'fixtures', 'empty_search.json'), :content_type => "text/javascript+json; charset=utf-8", :status => ["200", "OK"])

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
domainr-0.1.0 test/helper.rb