Sha256: f30f6b6f31e13d1863618ed070a29f3782f19e0c2dd0bc9cbc8c3b3e1b4cb1a3
Contents?: true
Size: 519 Bytes
Versions: 6
Compression:
Stored size: 519 Bytes
Contents
require 'rjobs/command_builder' require 'rjobs/job' describe Rjobs::CommandBuilder do it "should have a class name CommandBuilder" do cb = Rjobs::CommandBuilder.new cb.should_not == nil end it "should build get job attributes command" do cb = Rjobs::CommandBuilder.new("xgrid", { :h => "127.0.0.1", :p => "xgrid", :f => "xml", :job => :attributes, :id => 1 }) cb.build.should == "xgrid -h 127.0.0.1 -p xgrid -f xml -job attributes -id 1" end end
Version data entries
6 entries across 6 versions & 1 rubygems