Browse files

Update to em-http-request 0.3.0.

This fixes some specs that were previously pending due to a bug in em-http-request.
  • Loading branch information...
1 parent dbbc4b3 commit cc7f1b564ae25131be588f1bf97e6277c3e8d545 @myronmarston committed Mar 26, 2011
Showing with 3 additions and 11 deletions.
  1. +1 −1 Gemfile
  2. +1 −9 spec/support/shared_example_groups/http_library.rb
  3. +1 −1 vcr.gemspec
View
2 Gemfile
@@ -5,7 +5,7 @@ group :development do
# patron and em-http-request can't install on JRuby, so we have to limit their platform here.
platforms :ruby do
gem 'patron', '0.4.9'
- gem 'em-http-request', '~> 0.2.7'
+ gem 'em-http-request', '~> 0.3.0'
gem 'curb', '0.7.8'
gem 'typhoeus', '~> 0.2.1'
end
View
10 spec/support/shared_example_groups/http_library.rb
@@ -74,16 +74,8 @@ def self.test_url(description, url)
let(:request) { VCR::Request.new(:get, url) }
let(:response) { VCR::Response.new(status, nil, response_body, '1.1') }
- def should_be_pending?
- return false unless described_class == VCR::HttpStubbingAdapters::WebMock
- return false unless request.uri.include?(CGI.escape('&'))
- self.class.included_modules.first.http_library_name == 'EM HTTP Request'
- end
-
it 'returns the expected response for the same request' do
- pending "WebMock/EM-HTTP bug", :if => should_be_pending? do
- get_body_string(make_http_request(:get, url)).should == response_body
- end
+ get_body_string(make_http_request(:get, url)).should == response_body
end
end
end
View
2 vcr.gemspec
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
{
'patron' => '0.4.9',
- 'em-http-request' => '~> 0.2.7',
+ 'em-http-request' => '~> 0.3.0',
'curb' => '0.7.8',
'typhoeus' => '~> 0.2.1'
}.each do |lib, version|

0 comments on commit cc7f1b5

Please sign in to comment.