Skip to content

Commit 95fcab6

Browse files
committed
Fix ggplot scoping error in tests
1 parent 0cbf123 commit 95fcab6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/testthat/mock-pkg-skip-newer/tests/testthat/test-skip-newer.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
context("Failing test")
22

3-
original <- ggplot(mtcars)
4-
failing <- ggplot(mtcars) + geom_vline(xintercept = 0)
3+
original <- ggplot2::ggplot(mtcars)
4+
failing <- ggplot2::ggplot(mtcars) + ggplot2::geom_vline(xintercept = 0)
55

66
test_that("this fails", {
77
expect_doppelganger("failing", failing)

tests/testthat/mock-pkg-skip-older/tests/testthat/test-skip-newer.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
context("Failing test")
22

3-
original <- ggplot(mtcars)
4-
failing <- ggplot(mtcars) + geom_vline(xintercept = 0)
3+
original <- ggplot2::ggplot(mtcars)
4+
failing <- ggplot2::ggplot(mtcars) + ggplot2::geom_vline(xintercept = 0)
55

66
test_that("this fails", {
77
expect_doppelganger("failing", failing)

0 commit comments

Comments
 (0)