search for: init_spec

Displaying 2 results from an estimated 2 matches for "init_spec".

2007 Oct 07
2
Specing exit codes
...ie, not running via the shell, directly executing). One of the things I need to do it spec the exit codes to make sure I am returing the correct exit codes for each condition as Postfix will then return SMTP errors as appropriate. I have two files that concern this bit of the program, init.rb and init_spec.rb. init.rb right now looks like this: ------------------------ class Init exit 1 end ------------------------ init_spec.rb looks like this: ------------------------ require ''spec'' require ''systemu'' require ''init'' describe Init do it &quo...
2013 Aug 30
3
rspec-puppet not working
...t 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-...