Skip to content

Commit

Permalink
Merge pull request #246 from kkolotyuk/master
Browse files Browse the repository at this point in the history
disabled color
  • Loading branch information
katelovescode committed Nov 27, 2017
2 parents b65d2e7 + e892185 commit 3b214ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/jenkins_api_client/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,8 @@ def color_to_status(color)
"not_run"
when "aborted"
"aborted"
when "disabled"
"disabled"
else
"invalid"
end
Expand Down
1 change: 1 addition & 0 deletions spec/unit_tests/job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@
@job.color_to_status("grey").should == "not_run"
@job.color_to_status("grey_anime").should == "running"
@job.color_to_status("aborted").should == "aborted"
@job.color_to_status("disabled").should == "disabled"
end
it "returns invalid as the output if unknown color is detected" do
@job.color_to_status("orange").should == "invalid"
Expand Down

0 comments on commit 3b214ed

Please sign in to comment.