Skip to content

Commit

Permalink
Accommodate Socrata API change in field formats
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklucius committed Apr 18, 2019
1 parent 464c009 commit bcc9164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-all.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ context("Socrata Calendar")

test_that("Calendar Date Short", {
df <- read.socrata('http://data.cityofchicago.org/resource/y93d-d9e3.csv?$order=debarment_date')
dt <- df$DEBARMENT.DATE[1] # "05/21/1981"
dt <- df$debarment_date[1] # "05/21/1981"
expect_equal("POSIXct", class(dt)[1], label="data type of a date")
expect_equal("81", format(dt, "%y"), label="year")
expect_equal("05", format(dt, "%m"), label="month")
Expand Down

0 comments on commit bcc9164

Please sign in to comment.