Skip to content

Commit db98c1e

Browse files
committed
fixing CI (#23)
* allow using webmock 2 for testing * use the latest bundler in ci
1 parent ed0cf93 commit db98c1e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ rvm:
77
- 2.2.0
88
- ruby-head
99
- jruby-head
10+
11+
install:
12+
- gem install bundler
13+
- bundle install --jobs=3 --retry=3

test/test_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#http://net.tutsplus.com/tutorials/ruby/ruby-for-newbies-testing-with-rspec/
33
require_relative '../lib/zenoss'
44
require 'vcr'
5-
5+
require 'webmock'
66

77
ZENOSS_URL = ENV['zenoss_client_url'] || "http://localhost:8080/zport/dmd"
88
ZENOSS_USER = ENV['zenoss_client_username'] || "admin"
@@ -12,8 +12,8 @@
1212

1313
ZENOSS_VERSION = ENV['zenoss_version'] || '4.2.5'
1414

15-
1615
# VCR
16+
WebMock.enable!
1717
VCR.configure do |config|
1818
config.cassette_library_dir = "test/fixtures/vcr_cassettes"
1919
config.hook_into :webmock

0 commit comments

Comments
 (0)