diff options
author | Teddy Wing | 2017-11-11 23:01:53 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-11 23:01:53 +0100 |
commit | dd76f4de394da3d9ce8cd19b853da10d56caf8cd (patch) | |
tree | eb0c9d6fb372423bb3106b959ad3e8265a5b249e /src/pull_request.rs | |
parent | 7f369fe35557fab2e9d5c5693e41d238842dcf17 (diff) | |
download | kipper-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.rs | 3 |
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"); |