Skip to content

Commit

Permalink
cleaning up testthat context
Browse files Browse the repository at this point in the history
  • Loading branch information
sboysel committed Jan 12, 2016
1 parent f8b03af commit 8d575cd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test_api_docs.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
library(fredr)
context("api_docs functions properly")
context("api_docs")

test_that("api_docs throws errors on invalid endpoints", {
expect_error(api_docs(endpoint = "foo", debug = TRUE))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_errors.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
library(fredr)
context("fredr-based functions throw errors.")
context("fredr-based functions")

test_that("fredr throws errors for bad requests", {
expect_error(fredr())
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_get_freq.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
library(fredr)
context("Check get_freq")
context("get_freq")

test_that("get_freq functions properly", {
expect_error(get_freq())
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_set_api_key.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
library(fredr)
context("set_api_key is either set of throws an error")
context("set_api_key")

test_that("set_api_key throws an error if .Renviron is present.", {
# Backup
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_types.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
library(fredr)
context("Check returns for appropriate object types")
context("Correct objects returned")

a <- fredr(endpoint = "series/observations",
series_id = "GNPCA")
Expand Down

0 comments on commit 8d575cd

Please sign in to comment.