Skip to content

Commit d5f3f31

Browse files
committed
(CONT-1048) - Skip broken node_encrypt::file test
Skipping this test due to a difference in behaviour between mocha stub and rspec allow when calling the PuppetX::Binford2k::NodeEncrypt.decrypt method on Ruby 2.x only. Voted by the team to skip, as test case will be removed in #94 with the removal of the deprecated node_encrypt::file defined type.
1 parent 7b9a081 commit d5f3f31

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/defines/file_spec.rb

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
)
3434
}
3535
end
36-
37-
context 'with pre-encrypted content' do
36+
#skipping due to difference in behaviour between mocha stub and rspec allow, and the defined type node_encrypt::file is to be removed in a seperate PR
37+
context 'with pre-encrypted content', skip: true do
3838
let(:node) { 'testhost.example.com' }
3939
let(:title) { '/tmp/test' }
4040
let(:params) do
@@ -50,6 +50,10 @@
5050
allow(PuppetX::Binford2k::NodeEncrypt).to receive(:decrypt).with('encrypted').and_return('decrypted')
5151
end
5252

53+
it {
54+
is_expected.to have_notify_resource_count(1)
55+
}
56+
5357
it { is_expected.to have_notify_resource_count(1) }
5458

5559
it {

0 commit comments

Comments
 (0)