From 9c620fc4c21c9712ca24f2fead86ff7d2ff661cf Mon Sep 17 00:00:00 2001 From: Suyeol Jeon Date: Sat, 13 Jun 2015 23:32:00 +0900 Subject: [PATCH] Add a test for invalid github repo name. --- test/test_core.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_core.rb b/test/test_core.rb index b5d06a7..97df625 100644 --- a/test/test_core.rb +++ b/test/test_core.rb @@ -61,6 +61,13 @@ def test_raise_invalid_target assert_raises Seeds::Exception do @seed.install end end + def test_raise_invalid_github_reponame + seedfile %{ + github "JLToast", "1.2.2" + } + assert_raises Seeds::Exception do @seed.install end + end + def test_install seedfile %{ github "devxoul/JLToast", "1.2.2", :files => "JLToast/*.{h,swift}"