Skip to content

Commit 3ea6e07

Browse files
committed
update spec with relative pathing
1 parent d9f8f0f commit 3ea6e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/puppet/provider/vcsrepo/git_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def branch_a_list(include_branch = nil?)
764764
expect(provider).to receive(:update_remotes)
765765
expect(provider).to receive(:exec_git).with('--version').and_return('1.8.3.1')
766766
expect(provider).to receive(:exec_git).with('config', '--local', '--bool', 'core.sparseCheckout', 'true')
767-
expect(File).to receive(:open).with(File.join(resource.value(:path), '.git/info/sparse-checkout'), 'w').and_yield(sparse_checkout_file)
767+
expect(File).to receive(:open).with('.git/info/sparse-checkout', 'w').and_yield(sparse_checkout_file)
768768
resource.value(:includes).each do |inc|
769769
expect(sparse_checkout_file).to receive(:puts).with(inc)
770770
end

0 commit comments

Comments
 (0)