We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 778ebae commit 73e0867Copy full SHA for 73e0867
spec/defines/rbenv__gem_spec.rb
@@ -1,6 +1,17 @@
1
-# require 'spec_helper'
2
-#
3
-# describe 'rbenv::gem', :type => :define do
+require 'spec_helper'
+
+describe 'rbenv::gem', :type => :define do
4
5
+ describe 'fail when ruby is not installed' do
6
+ let(:ruby) { '0.0.0' }
7
+ let(:user) { 'nobody' }
8
9
+ it 'raises error' do
10
+ # expect { should contain_class('foo') }.to raise_error
11
+ raise_error(Puppet::Error, /Rbenv-Ruby .* for user .* not found in catalog/)
12
+ end
13
14
+end
15
# shared_examples 'rbenvgem' do
16
# it do
17
# should contain_rbenvgem("#{user}/#{ruby_version}/#{gem_name}/#{_ensure}").with(
0 commit comments