Sha256: 32b7814ccaf3cf609c995deeb7597c196870d2c6972512ebc5ed3e2717cc819d
Contents?: true
Size: 564 Bytes
Versions: 7
Compression:
Stored size: 564 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'ero_getter' require 'fakeweb' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| end def fake(method, url, file) FakeWeb.register_uri(method, url, :body => File.read(sample_path(file))) end def sample_path(file) File.join(File.dirname(__FILE__), 'samples', file) end
Version data entries
7 entries across 7 versions & 1 rubygems