Sha256: 24b2b63a68740f6783dd17976dff0612d1a1afd49d1bb640364a715bc4e44285

Contents?: true

Size: 300 Bytes

Versions: 14

Compression:

Stored size: 300 Bytes

Contents

module JavaScriptAPIFixtures
  class A
  end

  class A::B
  end
end

require 'spec_helper'
require 'native'

describe "JavaScript API" do
  it "allows to acces scopes on `Opal` with dots (regression for #1418)" do
    `Opal.JavaScriptAPIFixtures.A.B`.should == JavaScriptAPIFixtures::A::B
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
opal-0.10.6 spec/opal/javascript_api_spec.rb
opal-0.10.6.beta spec/opal/javascript_api_spec.rb
opal-0.10.5 spec/opal/javascript_api_spec.rb
opal-0.10.4 spec/opal/javascript_api_spec.rb
opal-0.11.0.rc1 spec/opal/javascript_api_spec.rb
opal-0.10.3 spec/opal/javascript_api_spec.rb
opal-0.10.2 spec/opal/javascript_api_spec.rb
opal-0.10.1 spec/opal/javascript_api_spec.rb
opal-0.10.0 spec/opal/javascript_api_spec.rb
opal-0.10.0.rc2 spec/opal/javascript_api_spec.rb
opal-0.10.0.rc1 spec/opal/javascript_api_spec.rb
opal-0.10.0.beta5 spec/opal/javascript_api_spec.rb
opal-0.10.0.beta4 spec/opal/javascript_api_spec.rb
opal-0.10.0.beta3 spec/opal/javascript_api_spec.rb