test/executioner_test.rb in executioner-0.3.0 vs test/executioner_test.rb in executioner-0.3.1

- old
+ new

@@ -193,6 +193,13 @@ it "should define an instance method which raises a Executioner::ExecutableNotFoundError error if the executable could not be found" do lambda { @object.doesnotexistforsure 'right?' }.should.raise Executioner::ExecutableNotFoundError end + + it "should work when there is no home directory in the environment" do + ruby = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) + lambda { + @object.execute("#{ruby} #{File.expand_path('../scripts/load_executioner_without_home.rb', __FILE__)}") + }.should.not.raise + end end \ No newline at end of file