Skip to content

Commit

Permalink
Change blacklist->denylist in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
clinejj committed Aug 18, 2021
1 parent 9363881 commit a3aec9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Expand Up @@ -607,9 +607,9 @@
* `WebMock.disable_net_connect` accepts `:allow` option with an object that responds to `#call`, receiving a `URI` object and returning a boolean:


blacklist = ['google.com', 'facebook.com', 'apple.com']
denylist = ['google.com', 'facebook.com', 'apple.com']
allowed_sites = lambda{|uri|
blacklist.none?{|site| uri.host.include?(site) }
denylist.none?{|site| uri.host.include?(site) }
}
WebMock.disable_net_connect!(:allow => allowed_sites)

Expand Down

0 comments on commit a3aec9c

Please sign in to comment.