I'm trying to get rspec-puppet working and have run into a problem. I have a VM running ubuntu lucid, have installed rubygems 1.3.5 from the apt package and have install rspec-puppet (and other required gems), and rake, using gem install.
I've run rspec-puppet-init in the module I want to test, and have created a very basic spec file for one of the classes in my module. However, when I run 'rake spec' from the top level of the module directory, I get the following error: *(in /modules/couchbase)* */usr/bin/ruby1.8 -S rspec spec/classes/init_spec.rb* */usr/bin/ruby1.8: No such file or directory -- rspec (LoadError)* */usr/bin/ruby1.8 -S rspec spec/classes/init_spec.rb failed* It seems like it can't load rspec, but if I do 'gem list --local' it shows in the list of locally installed gems: *vagrant@ubuntu-server-10044-x64-vbox4210-nocm:/modules/couchbase$ gem list --local* * * **** LOCAL GEMS **** * * *diff-lcs (1.2.4)* *metaclass (0.0.1)* *mocha (0.14.0)* *puppet-lint (0.3.2)* *puppetlabs_spec_helper (0.4.1)* *rake (10.1.0)* *rspec (2.14.1)* *rspec-core (2.14.5)* *rspec-expectations (2.14.2)* *rspec-mocks (2.14.3)* *rspec-puppet (0.1.6)* * * Does anyone know why it's not working? I've searched for an answer online, but I'm not overly familiar with ruby, gems, rake, etc and I'm at a bit of a loss. Thanks, Guy -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
