Skip to content

Commit

Permalink
add env var
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbyrne committed May 21, 2024
1 parent 80a3376 commit 9af22a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ jobs:
run: USE_MINITEST_RETRY=1 NODE_OPTIONS=--openssl-legacy-provider RAILS_ENV=test bundle exec rails test
env:
DATABASE_URL_TEST: postgres://postgres:postgres@localhost:5432/brave_publishers_test
BAT_RATIOS_URL: https://ratios.rewards.bravesoftware.com

18 changes: 9 additions & 9 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@
config.default_cassette_options = {match_requests_on: %i[method uri body], decode_compressed_response: true}
end

module WebMock
class RequestPattern
alias_method :_matches?, :matches?

def matches?(request_signature)
return if request_signature.uri.host == '127.0.0.1' && request_signature.uri.path == '/__identify__'
_matches?(request_signature)
end
end
# module WebMock
# class RequestPattern
# alias_method :_matches?, :matches?

# def matches?(request_signature)
# return if request_signature.uri.host == '127.0.0.1' && request_signature.uri.path == '/__identify__'
# _matches?(request_signature)
# end
# end

# def self.net_connect_explicit_allowed?(allowed, uri=nil)
# case allowed
Expand Down

0 comments on commit 9af22a1

Please sign in to comment.