Sha256: 164c9b095cd5a28a61dac2b861c9602979b8c41a6bd039da3e7bb3e64de60b0e

Contents?: true

Size: 188 Bytes

Versions: 6

Compression:

Stored size: 188 Bytes

Contents

# backtick_javascript: true

describe "Opal.eval()" do
  it "evaluates ruby code by compiling it to javascript and running" do
    `Opal['eval']("'foo'.class")`.should == String
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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