File: system_spec.rb

package info (click to toggle)
ruby-em-synchrony 1.0.5-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 572 kB
  • sloc: ruby: 3,458; sh: 37; sql: 7; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "spec/helper/all"

describe EventMachine::Synchrony do

  it "system: simple" do
    EM.synchrony do
      out, status = EM::Synchrony.system("echo 'some'")

      status.should == 0
      out.should == "some\n"

      EM.stop
    end
  end
end