diff options
author | Teddy Wing | 2017-11-09 20:10:50 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-09 20:10:50 +0100 |
commit | da35bf4c3ab514e417244aae1d1923487f558584 (patch) | |
tree | 5cb808f5effa60a0d851785769c3753b3fa0efc4 /src | |
parent | 69b930565a118f1f9890492e9f3130e23091b398 (diff) | |
download | kipper-da35bf4c3ab514e417244aae1d1923487f558584.tar.bz2 |
Correct tests after 69b930565a118f1f9890492e9f3130e23091b398
Now that a bunch of function signatures have been rewritten to take
references, update the tests to pass the correct arguments.
Diffstat (limited to 'src')
-rw-r--r-- | src/af83.rs | 2 | ||||
-rw-r--r-- | src/github.rs | 4 | ||||
-rw-r--r-- | src/jenkins.rs | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/af83.rs b/src/af83.rs index 1547700..5a56c36 100644 --- a/src/af83.rs +++ b/src/af83.rs @@ -21,7 +21,7 @@ mod tests { }; assert_eq!( - job_name(commit_ref), + job_name(&commit_ref), "5912-make-logo-bigger-159f8" ); } diff --git a/src/github.rs b/src/github.rs index 0eb85b0..6cabbfd 100644 --- a/src/github.rs +++ b/src/github.rs @@ -90,8 +90,8 @@ mod tests { }; update_commit_status( - commit_ref, - CommitStatus::Success, + &commit_ref, + &CommitStatus::Success, "https://jenkins.example.com/job/octocat/3".to_string(), None, "continuous-integration/jenkins".to_string() diff --git a/src/jenkins.rs b/src/jenkins.rs index 2034492..7b17b5c 100644 --- a/src/jenkins.rs +++ b/src/jenkins.rs @@ -251,7 +251,7 @@ mod tests { "#) .create(); - let job = request_job("http://jenkins.example.com/job/changes-branches/15".to_string()); + let job = request_job("http://jenkins.example.com/job/changes-branches/15"); let expected = Job { display_name: "2388-delete-the-codes-391af".to_string(), @@ -276,7 +276,7 @@ mod tests { branch: "1753-fix-everything".to_string(), }; - assert_eq!(job_for_commit(job, commit_ref), true); + assert_eq!(job_for_commit(&job, &commit_ref), true); } #[test] @@ -293,7 +293,7 @@ mod tests { branch: "1753-fix-everything".to_string(), }; - assert_eq!(job_for_commit(job, commit_ref), false); + assert_eq!(job_for_commit(&job, &commit_ref), false); } #[test] |