Skip to content

open-uri lazy load not working - NoMethodError open for URI:Module #356

@Annih

Description

@Annih

Following release of fauxhai-ng version 9.0.0 our CI started to fail when trying to fallback on github fetch!

Here is the error:

NoMethodError: private method `open' called for URI:Module> with backtrace:
  # ./bundle/ruby/2.4.0/gems/fauxhai-ng-9.0.0/lib/fauxhai/mocker.rb:50:in `block in data'

I think it is linked to #353 which use a "generic" lazy loading pattern, not working for the open-uri gem which is not declaring any OpenURI module :)

I'm going to submit a PR for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions