+
+ context '123:456' do
+ let(:title) { 'motd_header' }
+ let(:params) {{ :order => '123:456', :target => '/etc/motd' }}
+
+ it 'should fail' do
+ expect { catalogue }.to raise_error(Puppet::Error, /cannot contain/)
+ end
+ end
+ context '123/456' do
+ let(:title) { 'motd_header' }
+ let(:params) {{ :order => '123/456', :target => '/etc/motd' }}
+
+ it 'should fail' do
+ expect { catalogue }.to raise_error(Puppet::Error, /cannot contain/)
+ end
+ end
+ context '123\n456' do
+ let(:title) { 'motd_header' }
+ let(:params) {{ :order => "123\n456", :target => '/etc/motd' }}
+
+ it 'should fail' do
+ expect { catalogue }.to raise_error(Puppet::Error, /cannot contain/)
+ end
+ end
+ end # order =>