Sha256: 74012a492695757ced568d2d9fc1890192de2caf963525a7b06f49011f21abdc
Contents?: true
Size: 533 Bytes
Versions: 6
Compression:
Stored size: 533 Bytes
Contents
require 'securerandom' require 'test_helper' class SimCtl::ExecutorTest < Minitest::Test should 'raise exception' do assert_raises { SimCtl::Executor.execute(['xcrun simctl asdf']) } end should 'return json' do json = SimCtl::Executor.execute(["echo '{\"foo\":\"bar\"}'"]) do |result| result end assert json == {'foo' => 'bar'} end should 'return string' do string = SimCtl::Executor.execute(["echo 'hello world'"]) do |result| result end assert string == 'hello world' end end
Version data entries
6 entries across 6 versions & 1 rubygems