Skip to content

enable_net_connent!() with a block #1110

Description

@yegor256

Now I have to do this:

WebMock.enable_net_connect!
begin
  # go to google.com
ensure
  WebMock.disable_net_connect!
end

Would be more convenient to do this:

WebMock.enable_net_connect! do 
  # go to google.com
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions