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.3.37 spec/core/kernel/instance_variable_set_spec.rb
opal-0.3.36 spec/core/kernel/instance_variable_set_spec.rb
opal-0.3.35 spec/core/kernel/instance_variable_set_spec.rb
opal-0.3.34 spec/core/kernel/instance_variable_set_spec.rb
opal-0.3.33 spec/core/kernel/instance_variable_set_spec.rb
opal-0.3.32 spec/core/kernel/instance_variable_set_spec.rb
opal-0.3.31 spec/core/kernel/instance_variable_set_spec.rb
opal-0.3.30 spec/core/kernel/instance_variable_set_spec.rb
opal-0.3.29 spec/core/kernel/instance_variable_set_spec.rb
opal-0.3.28 spec/core/kernel/instance_variable_set_spec.rb
opal-0.3.27 spec/core/kernel/instance_variable_set_spec.rb