From c5348aaa519b2e53c8f9578c14771c031477e450 Mon Sep 17 00:00:00 2001 From: Suyeol Jeon Date: Mon, 19 Oct 2015 00:30:46 +0900 Subject: [PATCH] Add test code to test raising exceptions for invalid tag and commits. --- test/test_install.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/test_install.rb b/test/test_install.rb index dee43e3..ecc8abb 100644 --- a/test/test_install.rb +++ b/test/test_install.rb @@ -91,6 +91,22 @@ def test_raise_github_both_tag_and_commit assert_raises Seeds::Exception do @seed.install end end + + def test_raise_invalid_tag + seedfile %{ + github "JLToast", "Hello, World!" + } + assert_raises Seeds::Exception do @seed.install end + end + + + def test_raise_invalid_commit + seedfile %{ + github "JLToast", :commit => "Hello, World!" + } + assert_raises Seeds::Exception do @seed.install end + end + end