summaryrefslogtreecommitdiff
path: root/spec/ruby/language/execution_spec.rb
blob: 4e0310946dc3c5bee437bd8d556e07073c65be13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require_relative '../spec_helper'

describe "``" do
  it "returns the output of the executed sub-process" do
    ip = 'world'
    `echo disc #{ip}`.should == "disc world\n"
  end
end

describe "%x" do
  it "is the same as ``" do
    ip = 'world'
    %x(echo disc #{ip}).should == "disc world\n"
  end
end