Skip to content

Commit 1023f85

Browse files
authored
Require pathname module (#536)
... otherwise the test fails with: TestWorktree: test_worktree_add_and_remove: .: (0.080734) test_worktree_prune: .: (0.055268) test_worktrees_all: .: (0.037409) test_worktrees_single: E =============================================================================== Error: test_worktrees_single(TestWorktree): NameError: uninitialized constant TestWorktree::Pathname /<<PKGBUILDDIR>>/tests/units/test_worktree.rb:51:in `test_worktrees_single' 48: 49: def test_worktrees_single 50: worktree = @git.worktrees.first => 51: git_dir = Pathname.new(@git.dir.to_s).realpath.to_s 52: assert_equal(worktree.dir, git_dir) 53: assert_equal(worktree.gcommit, SAMPLE_LAST_COMMIT) 54: end =============================================================================== : (0.041215) Signed-off-by: Daniel Leidert <daniel.leidert@wgdd.de>
1 parent 58100b0 commit 1023f85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/units/test_worktree.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env ruby
22
require 'fileutils'
3+
require 'pathname'
34
require File.dirname(__FILE__) + '/../test_helper'
45

56
SAMPLE_LAST_COMMIT = '5e53019b3238362144c2766f02a2c00d91fcc023'

0 commit comments

Comments
 (0)