File: ini_setting_spec.rb

package info (click to toggle)
puppet-module-designate 25.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,544 kB
  • sloc: ruby: 3,196; python: 38; sh: 10; makefile: 10
file content (12 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'
provider_class = Puppet::Type.type(:designate_rootwrap_config).provider(:ini_setting)
describe provider_class do
  it 'should allow setting to be set explicitly' do
    resource = Puppet::Type::Designate_rootwrap_config.new(
      {:name => 'boo/zoo', :value => 'plop'}
    )
    provider = provider_class.new(resource)
    expect(provider.section).to eq('boo')
    expect(provider.setting).to eq('zoo')
  end
end