summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2018-03-06 09:40:56 -0700
committermokha <mokha@cisco.com>2018-03-06 09:40:56 -0700
commit9bb401a1c06ab593cd333c106cda85538fe12f5d (patch)
treefc546cb08c2192281b5faf08c18de8d98ea27443
parentababc7a0937a200fba76eee70304fc2bf4e3dc40 (diff)
use english module.
-rw-r--r--spec/support/shell_helpers.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/shell_helpers.rb b/spec/support/shell_helpers.rb
index a9aee8f..a918305 100644
--- a/spec/support/shell_helpers.rb
+++ b/spec/support/shell_helpers.rb
@@ -1,3 +1,5 @@
+require 'english'
+
RSpec.shared_context 'shell execution' do
subject { execute(command) }
@@ -9,7 +11,7 @@ RSpec.shared_context 'shell execution' do
full_command = "#{env} bundle exec ruby ./exe/saml-kit #{command} 2>&1"
puts full_command unless mute
output = `#{full_command}`
- [$?, output]
+ [$CHILD_STATUS, output]
end
end