Skip to content

Commit

Permalink
[Job] - added spec test for list_by_status
Browse files Browse the repository at this point in the history
  • Loading branch information
arangamani committed Nov 18, 2012
1 parent 4119c23 commit f168160
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@
}
end

it "Should be able to list jobs by status" do
names = @client.job.list('success')
names.class.should == Array
names.each do |name|
status = @client.job.get_current_build_status(name)
status.should == 'success'
end
end

it "Should return all job names with details" do
@client.job.list_all_with_details.class.should == Array
end
Expand Down

0 comments on commit f168160

Please sign in to comment.