Sha256: e6bcd7ba9810219d426b2bb0cc01d3f1bb5bb47016324a36021d8189ea6b2c18

Contents?: true

Size: 375 Bytes

Versions: 6

Compression:

Stored size: 375 Bytes

Contents

# backtick_javascript: false

describe "The x-string expression for send" do
  def `(command)
    "Linux x86_64" if command == "uname -a"
  end

  it "compiles as send if backtick_javascript is false" do
    `uname -a`.should == "Linux x86_64"
  end

  it "compiles as send with dstr if backtick_javascript is false" do
    `uname#{" "}-a`.should == "Linux x86_64"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 spec/opal/core/language/xstring_send_spec.rb
opal-1.8.2 spec/opal/core/language/xstring_send_spec.rb
opal-1.8.1 spec/opal/core/language/xstring_send_spec.rb
opal-1.8.0 spec/opal/core/language/xstring_send_spec.rb
opal-1.8.0.beta1 spec/opal/core/language/xstring_send_spec.rb
opal-1.8.0.alpha1 spec/opal/core/language/xstring_send_spec.rb