Skip to content

Commit

Permalink
Updating spec to allow for minor variation in the display of error me…
Browse files Browse the repository at this point in the history
…ssages
  • Loading branch information
koglinjg committed Apr 23, 2014
1 parent daaf5e7 commit 1275e26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@
end
it 'should throw an error when the user doesn\'t exist' do
@vhost_provider.new(@vhost_resource).create
expect { @provider.create }.to raise_error(Puppet::Error, /reasonvhost_or_user_not_found/)
expect { @provider.create }.to raise_error(Puppet::Error, /vhost_or_user_not_found/)
end
it 'should throw an error when the vhost doesn\'t exist' do
@user_provider.new(@user_resource).create
expect { @provider.create }.to raise_error(Puppet::Error, /reasonvhost_or_user_not_found/)
expect { @provider.create }.to raise_error(Puppet::Error, /vhost_or_user_not_found/)
end
it 'should fallback to default permissions when a permission value is undef' do
@user_provider.new(@user_resource).create
Expand Down

0 comments on commit 1275e26

Please sign in to comment.