From 3edb2a5e1e67e2ff4c51953fd32d863d3cba914a Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Thu, 29 Jun 2017 04:46:25 -0400 Subject: [PATCH] nnn 1.2 Changing the test because curses in the DUMB term seems unable to start on new lines at certain places *and* seems to truncate at 80 columns. Anyway, the gist is, we were testing for a string that is beyond column 80 and hence is truncated. Instead we now test for something that's at the beginning of a line. Closes #15095. Signed-off-by: ilovezfs --- Formula/nnn.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Formula/nnn.rb b/Formula/nnn.rb index 01b8f3f1bfb0..13fe5ee46f32 100644 --- a/Formula/nnn.rb +++ b/Formula/nnn.rb @@ -1,8 +1,8 @@ class Nnn < Formula desc "Free, fast, friendly file browser" homepage "https://github.com/jarun/nnn" - url "https://github.com/jarun/nnn/archive/v1.1.tar.gz" - sha256 "15ce2a205147b8dd9da5de1ffa6e4b273ac8385959740786f7342057d0209cc3" + url "https://github.com/jarun/nnn/archive/v1.2.tar.gz" + sha256 "d8b1f04ef99324a16504d14999833fe97da7840e058e37538fb350cd39e38022" bottle do cellar :any_skip_relocation @@ -16,12 +16,11 @@ def install end test do - touch "foobar" # Testing this curses app requires a pty require "pty" PTY.spawn(bin/"nnn") do |r, w, _pid| w.write "q" - assert_match "foobar", r.read + assert_match "cwd: #{testpath.realpath}", r.read end end end