From 6bae285bb004246961fe17001aa36e81fc5b2699 Mon Sep 17 00:00:00 2001 From: Brandon Turner Date: Thu, 5 Apr 2012 12:26:55 -0500 Subject: [PATCH] Fix WebMock deprecation --- test/helper.rb | 1 - test/test_client.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/helper.rb b/test/helper.rb index ea0302d..52d4e4d 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -20,7 +20,6 @@ WebMock.allow_net_connect! class Test::Unit::TestCase - include WebMock include RR::Adapters::TestUnit def setup WebMock.allow_net_connect! diff --git a/test/test_client.rb b/test/test_client.rb index dacf627..836598c 100644 --- a/test/test_client.rb +++ b/test/test_client.rb @@ -8,7 +8,7 @@ class TestClient < Test::Unit::TestCase :app_name => CROWD_CONFIG['app_name'], :app_password => CROWD_CONFIG['app_password']}) @service_url = @client.options[:service_url] - reset_webmock + WebMock.reset! end should "initialize" do @client.should_not be nil