Skip to content

Commit

Permalink
Future-proof Travis-CI skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleiwood committed Nov 2, 2019
1 parent b19812e commit f1cea8b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/testthat/test_wage_inflator.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
context("Wage inflator")

expect_equal <- function(left, right, check.attributes = FALSE) {
expect_equal <- function(left, right, check.attributes = FALSE, ...) {
testthat::expect_equal(unclass(left),
unclass(right),
check.attributes = FALSE)
check.attributes = FALSE, ...)
}

test_that("Default from_fy and to_fy", {
Expand Down Expand Up @@ -107,8 +107,10 @@ test_that("ABS connection", {
skip_if_not(packageVersion("rsdmx") >= package_version("0.5.10"))

# Minimize false on errors on travis
skip_if(getRversion() >= "3.6")
skip_if(getRversion() <= "3.4")
# Skip travis tests (except oldrel)
nottravis_or_oldrel <-
Sys.getenv("TRAVIS_R_VERSION_STRING") %in% c("", "oldrel")
skip_if_not(nottravis_or_oldrel)

internal_ans <- wage_inflator(from_fy = "2012-13",
to_fy = "2013-14",
Expand Down

0 comments on commit f1cea8b

Please sign in to comment.