lib/test-kitchen/project/ruby.rb in test-kitchen-0.5.4 vs lib/test-kitchen/project/ruby.rb in test-kitchen-0.6.0
- old
+ new
@@ -20,17 +20,17 @@
module Project
class Ruby < Base
def install_command(runtime=nil, test_path=guest_test_root)
cmd = "cd #{test_path}"
- cmd << " && rvm use #{runtime}" if runtime
+ cmd << " && rvm use #{runtime}" if runtime && ! runtime.empty?
cmd << " && gem install bundler"
cmd << " && #{install}"
end
def test_command(runtime=nil, test_path=guest_test_root)
cmd = "cd #{test_path}"
- cmd << " && rvm use #{runtime}" if runtime
+ cmd << " && rvm use #{runtime}" if runtime && ! runtime.empty?
cmd << " && #{script}"
end
end
end
end