Skip to content

Commit 2bc3ce1

Browse files
committed
replace ZENOSS_URL with localhost in the recording
This allows the tests to be run without setting env. variables.
1 parent 08f7d30 commit 2bc3ce1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/test_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@
1616
VCR.configure do |config|
1717
config.cassette_library_dir = "test/fixtures/vcr_cassettes"
1818
config.hook_into :webmock
19+
config.before_record do |rec|
20+
rec.request.uri.sub!(ZENOSS_URL, 'http://localhost:8080/zport/dmd')
21+
end
1922
end

0 commit comments

Comments
 (0)