it do
expect {
subject.call
- }.to raise_error(Puppet::Error, /expects a String value/)
+ }.to raise_error(Puppet::Error, /expects a value of type Undef or String/)
end
end
context 'invalid release' do
it do
expect {
subject.call
- }.to raise_error(Puppet::Error, /expects a String value/)
+ }.to raise_error(Puppet::Error, /expects a value of type Undef or String/)
end
end
context 'invalid repos' do
it do
expect {
subject.call
- }.to raise_error(Puppet::Error, /expects a String value/)
+ }.to raise_error(Puppet::Error, /expects a value of type Undef or String/)
end
end
context 'invalid key' do
it do
expect {
subject.call
- }.to raise_error(Puppet::Error, /expects a value of type String or Hash, got Boolean/)
+ }.to raise_error(Puppet::Error, /expects a value of type Undef, String, or Hash, got Boolean/)
end
end
context 'invalid pin' do
it do
expect {
subject.call
- }.to raise_error(Puppet::Error, /expects a value of type Integer, String, or Hash, got Boolean/)
+ }.to raise_error(Puppet::Error, /expects a value of type Undef, Integer, String, or Hash, got Boolean/)
end
end
end
:content => [],
} end
it 'fails' do
- expect { subject.call }.to raise_error(/expects a String value/)
+ expect { subject.call }.to raise_error(/expects a value of type Undef or String/)
end
end
:options => {},
} end
it 'fails' do
- expect { subject.call }.to raise_error(/expects a String value/)
+ expect { subject.call }.to raise_error(/expects a value of type Undef or String/)
end
end
:content => [],
} end
it 'fails' do
- expect { subject.call }.to raise_error(/expects a String value/)
+ expect { subject.call }.to raise_error(/expects a value of type Undef or String/)
end
end
:options => {},
} end
it 'fails' do
- expect { subject.call }.to raise_error(/expects a String value/)
+ expect { subject.call }.to raise_error(/expects a value of type Undef or String/)
end
end