Skip to content

Commit

Permalink
fix test names
Browse files Browse the repository at this point in the history
Neither of these tests set `ensure` to any value.
  • Loading branch information
bugfood committed Dec 29, 2023
1 parent 82299e4 commit 5ba1953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/puppet/provider/vcsrepo/git_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 5ba1953

Please sign in to comment.