From 0caf134c5239dc2b6de3614c04e18e378e9f8305 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Mon, 16 Apr 2018 10:54:18 +0200 Subject: [PATCH] test on mac --- .travis.yml | 3 +++ test/ghtype_tests.jl | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 23b7583..eda2418 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,7 @@ language: julia +os: + - linux + - osx julia: - 0.6 - nightly diff --git a/test/ghtype_tests.jl b/test/ghtype_tests.jl index abe728c..f4fa964 100644 --- a/test/ghtype_tests.jl +++ b/test/ghtype_tests.jl @@ -12,7 +12,7 @@ function test_show(g::GitHub.GitHubType) @test repr(g) == String(take!(tmpio)) tmpio = IOBuffer() - showcompact(tmpio, g) + show(IOContext(tmpio, :compact => true), g) @test "$(typeof(g))($(repr(name(g))))" == String(take!(tmpio)) end @@ -540,7 +540,7 @@ end test_show(hook_result) end - + @testset "Gist" begin gist_json = JSON.parse(""" { @@ -734,7 +734,7 @@ end "updated_at": "2017-07-08T16:18:44" } """) - + app_result = App(app_json) @test name(app_result) == Int(app_json["id"]) end