Calls like these outside of test blocks throw deprecation warnings and
fail tests.
> Mocha methods cannot be used outside the context of a test
Just removing them makes the tests pass.
Issue: INTPAK-160
Change-Id: I5a4a94102338454bf3e03e9d6002c6c5b6f8e4f0
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
require 'spec_helper'
require 'fileutils'
-File.any_instance.stubs(:file?).returns(true)
-
provider_class = Puppet::Type.type(:odl_keystore).provider(:jks)
describe 'Puppet::Type.type(:odl_keystore).provider(:jks)' do
- before(:all) do
- FileUtils.stubs(:mkdir_p).returns(true)
- FileUtils.stubs(:chown)
- FileUtils.stubs(:rm)
- end
-
let :odl_attrs do
{
:name => 'controller',