Updated MSpec source to a54f23d0.
[rbx.git] / spec / frozen / 1.8 / language / execution_spec.rb
blob465293d3ef5e7b54229f5bbe2b7031bf7c2020c3
1 require File.dirname(__FILE__) + '/../spec_helper'
3 describe "Execution literal" do
4   it "`` should return the result of the executed sub-process" do
5     ip = 'world'
6     `echo disc #{ip}`.should == "disc world\n"
7   end
9   # NOTE: Interpolation ? It's not consistant with %w for example.
10   it "%x() is the same (with also interpolation)" do
11     ip = 'world'
12     %x(echo disc #{ip}).should == "disc world\n"
13   end
15   # NOTE: %X doesn't exist.
16 end