701e66b4ca
This change refactors how the dependent libraries are loaded during unit tests, and load the libraries in the base spec_helper to avoid duplicate and redundant implementations. Change-Id: I4d346c09ddcd3d1c8a5420f1168dc0f0c06c9a6f
14 lines
430 B
Ruby
14 lines
430 B
Ruby
require 'spec_helper'
|
|
provider_class = Puppet::Type.type(:gnocchi_api_paste_ini).provider(:ini_setting)
|
|
describe provider_class do
|
|
|
|
it 'should allow setting to be set explicitly' do
|
|
resource = Puppet::Type::Gnocchi_api_paste_ini.new(
|
|
{:name => 'dude/foo', :value => 'bar'}
|
|
)
|
|
provider = provider_class.new(resource)
|
|
expect(provider.section).to eq('dude')
|
|
expect(provider.setting).to eq('foo')
|
|
end
|
|
end
|