FakeHttpParser$new(),
0, "webDavHost")
- expect_that(REST$getResource("collections", resourceUUID), throws_error(404))
+ expect_that(REST$getResource("collections", resourceUUID), throws_error("404", fixed = TRUE))
})
test_that("listResources calls REST service properly", {
FakeHttpParser$new(),
0, "webDavHost")
- expect_that(REST$listResources("collections"), throws_error(404))
+ expect_that(REST$listResources("collections"), throws_error("404", fixed = TRUE))
})
test_that("fetchAllItems always returns all resource items from server", {
FakeHttpParser$new(),
0, "webDavHost")
- expect_that(REST$deleteResource("collections", resourceUUID), throws_error(404))
+ expect_that(REST$deleteResource("collections", resourceUUID), throws_error("404", fixed = TRUE))
})
test_that("updateResource calls REST service properly", {
0, "webDavHost")
expect_that(REST$updateResource("collections", resourceUUID, newResourceContent),
- throws_error(404))
+ throws_error("404", fixed = TRUE))
})
test_that("createResource calls REST service properly", {
0, "webDavHost")
expect_that(REST$createResource("collections", resourceContent),
- throws_error(404))
+ throws_error("404", fixed = TRUE))
})
test_that("create calls REST service properly", {