Skip to content

Commit f7410d8

Browse files
authored
Merge pull request #304 from puppetlabs/maint-mock_lvm_support_call
(maint) - clear lvm_support fact before test for no lvm_support
2 parents 949c600 + ace66be commit f7410d8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: "Checkout"
2424
uses: "actions/checkout@v3"
2525
with:
26-
ref: ${{ github.event.pull_request.head.sha }}}
26+
ref: ${{ github.event.pull_request.head.sha }}
2727

2828
- name: "Setup ruby"
2929
uses: "ruby/setup-ruby@v1"
@@ -53,7 +53,7 @@ jobs:
5353
- name: "Checkout"
5454
uses: "actions/checkout@v3"
5555
with:
56-
ref: ${{ github.event.pull_request.head.sha }}}
56+
ref: ${{ github.event.pull_request.head.sha }}
5757

5858
- name: "Setup ruby"
5959
uses: "ruby/setup-ruby@v1"

spec/unit/facter/lvm_support_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686

8787
context 'when there is no lvm support' do
8888
it 'does not exist' do
89+
Facter.fact(:lvm_support).expects(:value).at_least(1).returns(nil)
8990
Facter.value(:lvm_pvs).should be_nil
9091
end
9192
end

0 commit comments

Comments
 (0)