[DRE-commits] [ruby-dataobjects-sqlite3] 02/05: Make tests support RSpec3

Balasankar C balasankarc-guest at moszumanska.debian.org
Wed Jul 22 11:34:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-dataobjects-sqlite3.

commit ea3366f6300fc113c770f3a7523d7d3d0898a3aa
Author: Balasankar C <balasankarc at autistici.org>
Date:   Tue Jul 21 22:45:33 2015 +0530

    Make tests support RSpec3
---
 debian/patches/0030-test-support-rspec3.patch | 18 ++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 19 insertions(+)

diff --git a/debian/patches/0030-test-support-rspec3.patch b/debian/patches/0030-test-support-rspec3.patch
new file mode 100644
index 0000000..281b007
--- /dev/null
+++ b/debian/patches/0030-test-support-rspec3.patch
@@ -0,0 +1,18 @@
+--- 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
diff --git a/debian/patches/series b/debian/patches/series
index 7348b7a..22ade68 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0010_remove_rubygems_from_specs.patch
 0020_remove_loadpath_manipulation_in_specs.patch
+0030-test-support-rspec3.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-dataobjects-sqlite3.git



More information about the Pkg-ruby-extras-commits mailing list