mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
16 lines
327 B
Ruby
16 lines
327 B
Ruby
|
require File.expand_path('../../spec_helper', __FILE__)
|
||
|
|
||
|
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
|