[DRE-commits] [ruby-torquebox-no-op] 03/04: Migrate tests to RSpec3
Balasankar C
balasankarc-guest at moszumanska.debian.org
Mon Jun 29 17:59:34 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-torquebox-no-op.
commit f52be071c098b0dccfbd28745a5733cf593b8550
Author: Balasankar C <balasankarc at autistici.org>
Date: Mon Jun 29 23:12:54 2015 +0530
Migrate tests to RSpec3
---
debian/patches/migrate-tests-to-rspec3 | 26 ++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 27 insertions(+)
diff --git a/debian/patches/migrate-tests-to-rspec3 b/debian/patches/migrate-tests-to-rspec3
new file mode 100644
index 0000000..1884869
--- /dev/null
+++ b/debian/patches/migrate-tests-to-rspec3
@@ -0,0 +1,26 @@
+Description: Migrate tests to RSpec3
+ Change should_not from RSpec 2 to the newer expect syntax of RSpec 3 to avoud
+ deprecation warnings
+Author: Balasankar C <balasankarc at autistici.org>
+Forwarded: not-needed
+Last-Update: 2015-06-14
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/injectors_spec.rb
++++ b/spec/injectors_spec.rb
+@@ -21,13 +21,13 @@
+ include TorqueBox::Injectors
+
+ it 'should not error or return nil' do
+- fetch('foo').should_not be_nil
++ expect(fetch('foo')).not_to be_nil
+ end
+ end
+
+ describe 'TorqueBox::Injectors without include' do
+
+ it 'should not error or return nil' do
+- TorqueBox.fetch('foo').should_not be_nil
++ expect(TorqueBox.fetch('foo')).not_to be_nil
+ end
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..01868b1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+migrate-tests-to-rspec3
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-torquebox-no-op.git
More information about the Pkg-ruby-extras-commits
mailing list