I try do implement tests for my puppet code and was playing with
rspec-puppet but the following code gives me errors

require 'spec_helper'
describe 'irqbalance' do
  it { should include_class('irqbalance') }
  it { should include_class('irqbalance::data') }
  it { should contain_package('irqbalance').with(:ensure => 'installed') }
end

The errors looks like

NoMethodError:
       undefined method `include_class'
NoMethodError:
       undefined method `contain_package'

I feel lost.
These methods are supposed to provided by rspec-puppet ?

$ gem list|grep rspec
rspec (2.10.0)
rspec-core (2.10.1)
rspec-expectations (2.10.0)
rspec-mocks (2.10.1)
rspec-puppet (0.1.3)

This is on OS-X
-- 
Kind Regards, Markus Falb

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to