Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 <ilovezfs@icloud.com>
  • Loading branch information
zmwangx authored and ilovezfs committed Jun 29, 2017
1 parent d825811 commit 3edb2a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions 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
Expand All @@ -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

0 comments on commit 3edb2a5

Please sign in to comment.