summaryrefslogtreecommitdiffstats
path: root/test/app_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/app_test.rb')
-rw-r--r--test/app_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/app_test.rb b/test/app_test.rb
index c9496c0..d8f2324 100644
--- a/test/app_test.rb
+++ b/test/app_test.rb
@@ -42,6 +42,7 @@ class AppTest < HCl::TestCase
app.expects(:show).raises(SocketError)
app.expects(:exit).with(1)
app.process_args('show').run
+ assert_match /connection failed/i, error
end
def test_configure_on_auth_failure
@@ -52,6 +53,7 @@ class AppTest < HCl::TestCase
app.expects(:write_config).then(configured.is(true))
app.expects(:show).when(configured.is(true))
app.process_args('show').run
+ assert_match /unable to authenticate/i, error
end
def test_api_failure
@@ -59,6 +61,7 @@ class AppTest < HCl::TestCase
app.expects(:show).raises(HCl::TimesheetResource::Failure)
app.expects(:exit).with(1)
app.process_args('show').run
+ assert_match /API failure/i, error
end
end