Commit 9bb401a

mokha <mokha@cisco.com>
2018-03-06 16:40:56
use english module.
1 parent ababc7a
Changed files (1)
spec
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