[DRE-commits] [ruby-extendmatrix] 01/02: Update test syntax to RSpec 3

Balint Reczey rbalint at moszumanska.debian.org
Mon Aug 17 19:21:41 UTC 2015


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

rbalint pushed a commit to branch master
in repository ruby-extendmatrix.

commit c91e4cfc57aa1be2096e976e8da2043c08ddd6c1
Author: Balint Reczey <balint at balintreczey.hu>
Date:   Mon Aug 17 18:36:16 2015 +0200

    Update test syntax to RSpec 3
    
    Closes: #794172
---
 debian/control                               | 2 +-
 debian/patches/0001-Updated-to-rspec-2.patch | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 3b1317b..a80c86e 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.al
 Uploaders: Balint Reczey <balint at balintreczey.hu>
 Build-Depends: debhelper (>= 9~),
                gem2deb,
-               ruby-rspec,
+               ruby-rspec (>> 3),
                rake,
                ruby-rubyforge (>= 2.0.4),
                ruby-hoe (>= 2.6.1)
diff --git a/debian/patches/0001-Updated-to-rspec-2.patch b/debian/patches/0001-Updated-to-rspec-2.patch
index ad3af0d..6b48baa 100644
--- a/debian/patches/0001-Updated-to-rspec-2.patch
+++ b/debian/patches/0001-Updated-to-rspec-2.patch
@@ -40,7 +40,7 @@ Subject: [PATCH] Updated to rspec-2
  
  require 'extendmatrix'
  
-@@ -287,7 +287,7 @@
+@@ -287,10 +287,10 @@
      eigenvalues=[1.92,1.88,0.0,0.0]
      eigen=m.eigen
      eigen[:eigenvalues].each_with_index do |v,i|
@@ -48,4 +48,8 @@ Subject: [PATCH] Updated to rspec-2
 +      v.should be_within(0.01).of(eigenvalues[i])
      end
      eigenvectors=Matrix[[0.5, 0.5, 0.0, 0.707106781186547], [0.5, 0.5, 0.0, -0.707106781186547], [0.5, -0.5, 0.707106781186547, 0.0], [0.5, -0.5, -0.707106781186547, 0.0]]
-     Matrix.equal_in_delta?(eigen[:eigenvectors], eigenvectors).should be_true
+-    Matrix.equal_in_delta?(eigen[:eigenvectors], eigenvectors).should be_true
++    Matrix.equal_in_delta?(eigen[:eigenvectors], eigenvectors).should be true
+   end
+   it "sqrt" do
+     m=Matrix[[1,4,9],[16,25,36]]

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



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