mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
e6e5990497
It's a good idea to encapsulate methods rather than have them hanging around in global scope.
17 lines
470 B
Ruby
17 lines
470 B
Ruby
require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty')
|
|
gem 'rspec', '1.2.9'
|
|
gem 'fakeweb'
|
|
require 'spec/autorun'
|
|
require 'fakeweb'
|
|
|
|
FakeWeb.allow_net_connect = false
|
|
|
|
def file_fixture(filename)
|
|
open(File.join(File.dirname(__FILE__), 'fixtures', "#{filename.to_s}")).read
|
|
end
|
|
|
|
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
|
|
|
|
Spec::Runner.configure do |config|
|
|
config.include HTTParty::StubResponse
|
|
end
|