Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rspec-puppet tests for 2.0 #123

Merged
merged 1 commit into from
Apr 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spec/classes/nodejs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
end

it 'should fail' do
expect { subject }.to raise_error(Puppet::Error, /The nodejs module is not supported on Debian Squeeze./)
expect { catalogue }.to raise_error(Puppet::Error, /The nodejs module is not supported on Debian Squeeze./)
end
end

Expand Down Expand Up @@ -305,8 +305,8 @@
}
end

it 'should fail' do
expect { subject }.to raise_error(Puppet::Error, /The nodejs module is not supported on Fedora 18./)
it do
expect { catalogue }.to raise_error(Puppet::Error, /The nodejs module is not supported on Fedora 18./)
end
end

Expand Down
4 changes: 1 addition & 3 deletions spec/defines/global_config_entry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
let (:params) { { :ensure => 'invalid_value' } }

it 'should fail' do
expect {
should raise_error(Puppet::Error, /nodejs::npm::global_config_entry : Ensure parameter must be present or absent/)
}
expect { catalogue }.to raise_error(Puppet::Error, /nodejs::npm::global_config_entry : Ensure parameter must be present or absent/)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/nodejs_npm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
}}

it 'should fail' do
expect { subject }.to raise_error(Puppet::Error, /The nodejs::npm defined type does not accept version ranges/)
expect { catalogue }.to raise_error(Puppet::Error, /The nodejs::npm defined type does not accept version ranges/)
end
end

Expand Down