[DRE-commits] [ruby-jwt] 01/02: Make tests run with Rspec3

Balasankar C balasankarc-guest at moszumanska.debian.org
Wed Sep 2 12:57:09 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-jwt.

commit cc905c0518c1e463f1f75d1fc5f5b78aa5cb8229
Author: Balasankar C <balasankarc at autistici.org>
Date:   Wed Sep 2 18:26:10 2015 +0530

    Make tests run with Rspec3
---
 debian/patches/rpsec3-port.patch | 30 ++++++++++++++++++++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/rpsec3-port.patch b/debian/patches/rpsec3-port.patch
new file mode 100644
index 0000000..8436827
--- /dev/null
+++ b/debian/patches/rpsec3-port.patch
@@ -0,0 +1,30 @@
+Description: Port tests to RSpec 3
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2015-09-02
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/jwt_spec.rb
++++ b/spec/jwt_spec.rb
+@@ -124,18 +124,18 @@
+ 
+   describe "secure comparison" do
+     it "returns true if strings are equal" do
+-      expect(JWT.secure_compare("Foo", "Foo")).to be_true
++      expect(JWT.secure_compare("Foo", "Foo")).to be_truthy
+     end
+ 
+     it "returns false if either input is nil or empty" do
+       [nil, ""].each do |bad|
+-        expect(JWT.secure_compare(bad, "Foo")).to be_false
+-        expect(JWT.secure_compare("Foo", bad)).to be_false
++        expect(JWT.secure_compare(bad, "Foo")).to be_falsey
++        expect(JWT.secure_compare("Foo", bad)).to be_falsey
+       end
+     end
+ 
+     it "retuns false if the strings are different" do
+-      expect(JWT.secure_compare("Foo", "Bar")).to be_false
++      expect(JWT.secure_compare("Foo", "Bar")).to be_falsey
+     end
+   end
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..026def5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+rpsec3-port.patch

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



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