spec/sprinkle/verify_spec.rb in sprinkle-0.6.1 vs spec/sprinkle/verify_spec.rb in sprinkle-0.6.1.1

- old
+ new

@@ -114,15 +114,15 @@ it 'should do a test equality to check a symlink points to a specific file' do @verification.commands.should include("test 'myfile' = `readlink mypointer`") end it 'should do a "test -x" to check for an executable' do - @verification.commands.should include("test -x /usr/bin/ruby") + @verification.commands.should include("which /usr/bin/ruby") end it 'should test the "which" command to look for a global executable' do - @verification.commands.should include('[ -n "`echo \`which rails\``" ]') + @verification.commands.should include('which rails') end it 'should test the process list to find a process' do @verification.commands.should include("ps -C httpd") end @@ -135,9 +135,19 @@ @verification.commands.should include("gem list 'rails' --installed --version '2.1.0' > /dev/null") end it 'should check that an RPM is installed' do @verification.commands.should include("rpm -qa | grep ntp") + end + + it 'should delegate opts' do + @package.opts = {:tester_opt => "test-opt"} + @verification.opts[:tester_opt].should == "test-opt" + end + + it 'should delegate args' do + @package.args = ["test-arg"] + @verification.args[0].should == "test-arg" end end describe 'with process' do it 'should raise an error when no delivery mechanism is set' do