| Some rspec tests stub provider features by calling:
described_class.has_feature :libuser
|
However that modifies the global provider class, which metaprograms provider feature methods, such as:
Puppet::Provider::User::UseraddProvider.libuser? |
Puppet::Provider::User::UseraddProvider#feature?(:libuser)
|
The tests should be updated to stub the provider class and instance instead, such as
allow(described_class).to receive(:libuser?).and_return(true)
|
|