aboutsummaryrefslogtreecommitdiffstats
path: root/src/pull_request.rs
diff options
context:
space:
mode:
authorTeddy Wing2017-11-11 23:01:53 +0100
committerTeddy Wing2017-11-11 23:01:53 +0100
commitdd76f4de394da3d9ce8cd19b853da10d56caf8cd (patch)
treeeb0c9d6fb372423bb3106b959ad3e8265a5b249e /src/pull_request.rs
parent7f369fe35557fab2e9d5c5693e41d238842dcf17 (diff)
downloadkipper-dd76f4de394da3d9ce8cd19b853da10d56caf8cd.tar.bz2
Handle `Result` return values in tests
Update our failing test suite to work with our new return types now that many of our functions return `Result`s. Since these are tests, we handle them by panicking with error messages.
Diffstat (limited to 'src/pull_request.rs')
-rw-r--r--src/pull_request.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pull_request.rs b/src/pull_request.rs
index df4cd2a..c97df53 100644
--- a/src/pull_request.rs
+++ b/src/pull_request.rs
@@ -448,7 +448,8 @@ mod tests {
}
}"#;
- let commit_ref = CommitRef::new(payload);
+ let commit_ref = CommitRef::new(payload)
+ .expect("Failed to create CommitRef from payload");
assert_eq!(commit_ref.owner, "baxterthehacker");
assert_eq!(commit_ref.repo, "public-repo");