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