Skip to content
This repository

can't convert Pathname into String (TypeError) #127

alindeman opened this Issue August 27, 2011 · 6 comments

2 participants

Andy Lindeman Bartosz Blimke
Andy Lindeman

Version 1.7.5 on MRI 1.9.2.

require "webmock"


/Users/alindeman/.rvm/gems/ruby-1.9.2-p290/gems/webmock-1.7.5/lib/webmock/http_lib_adapters/em_http_request_adapter.rb:10:in `require': can't convert Pathname into String (TypeError)
    from /Users/alindeman/.rvm/gems/ruby-1.9.2-p290/gems/webmock-1.7.5/lib/webmock/http_lib_adapters/em_http_request_adapter.rb:10:in `<top (required)>'
    from /Users/alindeman/.rvm/gems/ruby-1.9.2-p290/gems/webmock-1.7.5/lib/webmock.rb:15:in `require'
    from /Users/alindeman/.rvm/gems/ruby-1.9.2-p290/gems/webmock-1.7.5/lib/webmock.rb:15:in `<top (required)>'
    from /Users/alindeman/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
Bartosz Blimke

Interesting. I just included it on ruby 1.9.2-p290 and it worked just fine.
Maybe it's something specific to your environment or some conflicting gem. Not sure how to reproduce it.

Bartosz Blimke

What version of rubygems do you use?

Andy Lindeman

Doh, you're right, in a clean environment it seems to work OK. I'll investigate further .. the project it's included in isn't too complicated.

Bartosz Blimke

Have you found the root cause? Is there a problem in webmock or not?

Andy Lindeman

Looking again.

Andy Lindeman

Can't reproduce anymore. D'oh :(

Andy Lindeman alindeman closed this September 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.