Skip to content

Commit

Permalink
Change blacklist->denylist in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
clinejj committed Aug 18, 2021
1 parent b709ba2 commit 9363881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,9 @@ RestClient.get('sample.org', '/bar') # ===> Failure
With an object that responds to `#call`, receiving a `URI` object and returning a boolean:

```ruby
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 9363881

Please sign in to comment.