mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Update the way we load rspec
This commit is contained in:
parent
7cbb1a0f79
commit
1214bb0e4b
1 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
|||
require 'rubygems'
|
||||
gem 'rspec', '>= 1.2.8'
|
||||
require 'spec'
|
||||
require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty')
|
||||
gem 'rspec', '>= 1.2.8'
|
||||
require 'spec/autorun'
|
||||
|
||||
def file_fixture(filename)
|
||||
open(File.join(File.dirname(__FILE__), 'fixtures', "#{filename.to_s}")).read
|
||||
|
@ -18,4 +17,4 @@ def stub_http_response_with(filename)
|
|||
http_request.stub!(:perform_actual_request).and_return(response)
|
||||
|
||||
HTTParty::Request.should_receive(:new).and_return(http_request)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue