From 5ba1953ae25785002c58cf999198c899f377bdb0 Mon Sep 17 00:00:00 2001 From: Corey Hickey Date: Thu, 28 Dec 2023 14:17:56 -0800 Subject: [PATCH] fix test names Neither of these tests set `ensure` to any value. --- spec/unit/puppet/provider/vcsrepo/git_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/puppet/provider/vcsrepo/git_spec.rb b/spec/unit/puppet/provider/vcsrepo/git_spec.rb index 780a3051..ae745421 100644 --- a/spec/unit/puppet/provider/vcsrepo/git_spec.rb +++ b/spec/unit/puppet/provider/vcsrepo/git_spec.rb @@ -249,7 +249,7 @@ def branch_a_list(include_branch = nil?) end end - context 'when with an ensure of mirror - when the path is a working copy repository' do + context 'when the path is a working copy repository' do it 'clones overtop it using force' do resource[:force] = true expect(Dir).to receive(:chdir).with('/').once.and_yield @@ -267,7 +267,7 @@ def branch_a_list(include_branch = nil?) end end - context 'when with an ensure of mirror - when the path is not empty and not a repository' do + context 'when the path is not empty and not a repository' do it 'raises an exception' do expect(provider).to receive(:path_exists?).and_return(true) expect(provider).to receive(:path_empty?).and_return(false)