Description: Make tests support RSpec3
 Tests used deprecated functions. Patched them to support RSpec3
Author: Balasankar C <balasankarc@autistici.org>
Last-Update: 2015-07-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/spec/connection_spec.rb
+++ b/spec/connection_spec.rb
@@ -23,12 +23,12 @@
     describe 'connecting with busy timeout' do
 
       it 'connects with a valid timeout' do
-        DataObjects::Connection.new("#{CONFIG.uri}?busy_timeout=200").should_not be_nil
+        expect(DataObjects::Connection.new("#{CONFIG.uri}?busy_timeout=200")).to_not be_nil
       end
 
       it 'raises an error when passed an invalid value' do
-        lambda { DataObjects::Connection.new("#{CONFIG.uri}?busy_timeout=stuff") }.
-          should raise_error(ArgumentError)
+        expect(lambda { DataObjects::Connection.new("#{CONFIG.uri}?busy_timeout=stuff") }).
+          to raise_error(ArgumentError)
       end
 
     end
