Skip to content

Commit

Permalink
add error branch test for package availablity
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolewski committed Sep 29, 2015
1 parent d18efae commit be39e2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ temp_pkg_dir() do
Pkg.rm("Example")
@test isempty(Pkg.installed())
@test !isempty(Pkg.available("Example"))
@test_throws ErrorException Pkg.available("IDoNotExist")
Pkg.clone("https://github.com/JuliaLang/Example.jl.git")
@test [keys(Pkg.installed())...] == ["Example"]
Pkg.status("Example", iob)
Expand Down

0 comments on commit be39e2c

Please sign in to comment.