Skip to content

Commit

Permalink
(maint) Fix for different versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hunner committed Apr 24, 2017
1 parent 4815fa1 commit fd1b911
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions spec/classes/apt_backports_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
it do
expect {
subject.call
}.to raise_error(Puppet::Error, /expects a value of type Undef or String/)
}.to raise_error(Puppet::Error, /expects a/)
end
end
context 'invalid release' do
Expand All @@ -236,7 +236,7 @@
it do
expect {
subject.call
}.to raise_error(Puppet::Error, /expects a value of type Undef or String/)
}.to raise_error(Puppet::Error, /expects a/)
end
end
context 'invalid repos' do
Expand All @@ -248,7 +248,7 @@
it do
expect {
subject.call
}.to raise_error(Puppet::Error, /expects a value of type Undef or String/)
}.to raise_error(Puppet::Error, /expects a/)
end
end
context 'invalid key' do
Expand All @@ -260,7 +260,7 @@
it do
expect {
subject.call
}.to raise_error(Puppet::Error, /expects a value of type Undef, String, or Hash, got Boolean/)
}.to raise_error(Puppet::Error, /expects a/)
end
end
context 'invalid pin' do
Expand All @@ -272,7 +272,7 @@
it do
expect {
subject.call
}.to raise_error(Puppet::Error, /expects a value of type Undef, Integer, String, or Hash, got Boolean/)
}.to raise_error(Puppet::Error, /expects a/)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/defines/key_compat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
:content => [],
} end
it 'fails' do
expect { subject.call }.to raise_error(/expects a value of type Undef or String/)
expect { subject.call }.to raise_error(/expects a/)
end
end

Expand All @@ -264,7 +264,7 @@
:options => {},
} end
it 'fails' do
expect { subject.call }.to raise_error(/expects a value of type Undef or String/)
expect { subject.call }.to raise_error(/expects a/)
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/defines/key_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
:content => [],
} end
it 'fails' do
expect { subject.call }.to raise_error(/expects a value of type Undef or String/)
expect { subject.call }.to raise_error(/expects a/)
end
end

Expand All @@ -269,7 +269,7 @@
:options => {},
} end
it 'fails' do
expect { subject.call }.to raise_error(/expects a value of type Undef or String/)
expect { subject.call }.to raise_error(/expects a/)
end
end

Expand Down

0 comments on commit fd1b911

Please sign in to comment.