Sha256: a1cfcc554b8df63dad79bb34edf5583a0c2b0f9afd344650e6d970e54f9e816c

Contents?: true

Size: 283 Bytes

Versions: 40

Compression:

Stored size: 283 Bytes

Contents

# No real support, just mocking

describe "Kernel#freeze" do
  it 'responds to #freeze and #frozen?' do
    o = mock('o')
    o.frozen?.should be_false
    o.freeze
    o.frozen?.should be_false
  end

  it "returns self" do
    o = Object.new
    o.freeze.should equal(o)
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
opal-1.5.1 spec/opal/core/kernel/freeze_spec.rb
opal-1.5.0 spec/opal/core/kernel/freeze_spec.rb
opal-1.5.0.rc1 spec/opal/core/kernel/freeze_spec.rb
opal-1.4.1 spec/opal/core/kernel/freeze_spec.rb
opal-1.4.0 spec/opal/core/kernel/freeze_spec.rb
opal-1.4.0.alpha1 spec/opal/core/kernel/freeze_spec.rb
opal-1.3.2 spec/opal/core/kernel/freeze_spec.rb
opal-1.3.1 spec/opal/core/kernel/freeze_spec.rb
opal-1.3.0 spec/opal/core/kernel/freeze_spec.rb
opal-1.3.0.rc1 spec/opal/core/kernel/freeze_spec.rb
opal-1.3.0.alpha1 spec/opal/core/kernel/freeze_spec.rb
opal-1.2.0 spec/opal/core/kernel/freeze_spec.rb
opal-1.2.0.beta1 spec/opal/core/kernel/freeze_spec.rb
opal-1.1.1 spec/opal/core/kernel/freeze_spec.rb
opal-1.1.1.rc1 spec/opal/core/kernel/freeze_spec.rb
opal-1.1.0 spec/opal/core/kernel/freeze_spec.rb
opal-1.1.0.rc1 spec/opal/core/kernel/freeze_spec.rb
opal-0.10.6 spec/opal/core/kernel/freeze_spec.rb
opal-0.10.6.beta spec/opal/core/kernel/freeze_spec.rb
opal-0.10.5 spec/opal/core/kernel/freeze_spec.rb