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