Sha256: cfdf59d718e620d54860a61f2346fcc7dc851a7d5306dd527c0527a50ca0f470
Contents?: true
Size: 705 Bytes
Versions: 2
Compression:
Stored size: 705 Bytes
Contents
require 'rjobs/job_handler' require 'rjobs/job' require 'data_helper' describe Rjobs::JobHandler do before(:each) do @jobAttributes = DataHelper.jobAttributes end it "should have get attributes command" do #process = mock(Rjobs::Process) Rjobs::Process.stub!(:run).and_return(@jobAttributes) Rjobs::JobHandler.get_job_attributes(1).should match /MyFirstJob/ end it "should have a job submit function" do job = Rjobs::Job.new() job.command = "test" job.params = {:a => "a", :b => "b" , "this is test" => ""} Rjobs::Process.stub!(:run).and_return(DataHelper.jobSubmit) Rjobs::JobHandler.submit_job(job) job.id.should == 11 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rjobs-0.2.0.alpha | spec/lib/job_handler_spec.rb |
rjobs-0.1.0.alpha | spec/lib/job_handler_spec.rb |