Sha256: ec66049f33fbffcd4a7ce445c0d88bac5da066f29844ef7ba36e98b0f6eb854d

Contents?: true

Size: 265 Bytes

Versions: 6

Compression:

Stored size: 265 Bytes

Contents

# backtick_javascript: true

describe "The x-string expression" do
  it "works with multiline, case and assignment" do
    a = case 1
        when 1
          %x{
            var b = 5;
            return b;
          }
        end
    
    a.should == 5
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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