Sha256: e2f95a2cc1da05615cf78e9eee13350c92385c52f2e8c36ca9c09218ad0c9ddf

Contents?: true

Size: 157 Bytes

Versions: 7

Compression:

Stored size: 157 Bytes

Contents

require 'spec_helper'

describe '`Opal.hash`' do
  it 'converts object literals to hashes' do
    `Opal.hash({a: 1, b: 2})`.should == {a: 1, b: 2}
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
opal-0.8.1 spec/opal/core/runtime_spec.rb
opal-0.8.1.rc1 spec/opal/core/runtime_spec.rb
opal-0.8.0 spec/opal/core/runtime_spec.rb
opal-0.8.0.rc3 spec/opal/core/runtime_spec.rb
opal-0.8.0.rc2 spec/opal/core/runtime_spec.rb
opal-0.8.0.rc1 spec/opal/core/runtime_spec.rb
opal-0.8.0.beta1 spec/opal/core/runtime_spec.rb