File: shape_spec.rb

package info (click to toggle)
ruby-rspec-puppet 2.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,416 kB
  • sloc: ruby: 6,661; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
require 'spec_helper'

describe 'Aliases::Shape', :if => Puppet::Util::Package.versioncmp(Puppet.version, '4.4.0') >= 0 do
  it { is_expected.to allow_value('square') }
  it { is_expected.to allow_value('circle') }
  it { is_expected.not_to allow_value('triangle') }
  it { is_expected.not_to allow_value(nil) }

  it { is_expected.to allow_values('square', 'circle') }
  it { is_expected.not_to allow_values('triangle', nil) }
end