summaryrefslogtreecommitdiffstats
path: root/test/app_test.rb
diff options
context:
space:
mode:
authorZack Hobson2013-12-10 19:08:34 -0800
committerZack Hobson2013-12-10 19:08:34 -0800
commit6342ba68f15c37fc8fbc219eeeda7675ad29d5fd (patch)
tree0b5b6b6992e47efe2c76456de9a3c4e9f46fc2b5 /test/app_test.rb
parent03aaebeac787a885fb82ce1745eb6c3d2aa78ef1 (diff)
downloadhcl-6342ba68f15c37fc8fbc219eeeda7675ad29d5fd.tar.bz2
capture_output: move to test/ext
Diffstat (limited to 'test/app_test.rb')
-rw-r--r--test/app_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/app_test.rb b/test/app_test.rb
index d8f2324..68e3782 100644
--- a/test/app_test.rb
+++ b/test/app_test.rb
@@ -42,7 +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
+ assert_match /connection failed/i, error_output
end
def test_configure_on_auth_failure
@@ -53,7 +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
+ assert_match /unable to authenticate/i, error_output
end
def test_api_failure
@@ -61,7 +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
+ assert_match /API failure/i, error_output
end
end