[DRE-commits] [ruby-neovim] 02/02: add fix_current_window_test.patch: fixes failing test with neovim 0.1.7

Jason Pleau jpleau-guest at moszumanska.debian.org
Fri Dec 9 20:46:31 UTC 2016


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

jpleau-guest pushed a commit to branch master
in repository ruby-neovim.

commit 36355bea546c3d3122fd1689dc4b86fcfebd3dbf
Author: Jason Pleau <jason at jpleau.ca>
Date:   Fri Dec 9 15:45:23 2016 -0500

    add fix_current_window_test.patch: fixes failing test with neovim 0.1.7
---
 debian/patches/fix_current_window_test.patch | 29 ++++++++++++++++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/fix_current_window_test.patch b/debian/patches/fix_current_window_test.patch
new file mode 100644
index 0000000..374479f
--- /dev/null
+++ b/debian/patches/fix_current_window_test.patch
@@ -0,0 +1,29 @@
+From 6ed635df885f2cbd5794de4cc523b3bdace9986d Mon Sep 17 00:00:00 2001
+From: Alex Genco <alexgenco at gmail.com>
+Date: Sun, 4 Dec 2016 19:22:09 -0800
+Subject: [PATCH] Fix Current#window= spec to use relative indices
+
+---
+ spec/neovim/current_spec.rb | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/spec/neovim/current_spec.rb b/spec/neovim/current_spec.rb
+index 823952d..6c78703 100644
+--- a/spec/neovim/current_spec.rb
++++ b/spec/neovim/current_spec.rb
+@@ -69,12 +69,12 @@ module Neovim
+ 
+     describe "#window=" do
+       it "sets the current window from an integer" do
++        start_index = current.window.index
+         client.command("vsp")
+-        expect(current.window.index).not_to eq(1)
+ 
+         expect {
+-          current.window = 1
+-        }.to change { current.window.index }.to(1)
++          current.window = start_index
++        }.to change { current.window.index }.to(start_index)
+       end
+ 
+       it "sets the current window from a Window" do
diff --git a/debian/patches/series b/debian/patches/series
index c41bd71..9b06825 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+fix_current_window_test.patch
 remove_coveralls_pry_bundler.patch

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



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