require "spec_helper" require "mixlib/shellout/helper" require "logger" describe Mixlib::ShellOut::Helper do class TestClass include Mixlib::ShellOut::Helper # this is a hash-like object def __config {} end # this is a train transport connection or nil def __transport_connection nil end # this is a logger-like object def __log Logger.new(IO::NULL) end end let(:test_class) { TestClass.new } it "works to run a trivial ruby command" do expect(test_class.shell_out("ruby -e 'exit 0'")).to be_kind_of(Mixlib::ShellOut) end end