Sha256: c267fb28bbe2b0b428396ecf281547a58060e67884cf9dd500f7d6653a43650e

Contents?: true

Size: 247 Bytes

Versions: 71

Compression:

Stored size: 247 Bytes

Contents

describe "Kernel#instance_variable_get" do
  before(:each) do
    @obj = Object.new
  end

  it "sets the value of the referenced variable" do
    @obj.instance_variable_set(:@test, 42)
    @obj.instance_variable_get(:@test).should == 42
  end
end

Version data entries

71 entries across 71 versions & 3 rubygems

Version Path
opal-0.10.6 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.6.beta spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.5 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.4 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.11.0.rc1 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.3 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.2 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.1 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.0 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.0.rc2 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.9.4 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.9.3 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.0.rc1 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.0.beta5 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.0.beta4 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.0.beta3 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.0.beta2 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.10.0.beta1 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.9.2 spec/opal/core/kernel/instance_variable_set_spec.rb
opal-0.9.0 spec/opal/core/kernel/instance_variable_set_spec.rb