Projects

Ticket #803 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

remove_instance_variable bug

Reported by: mattaimonetti@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.7
Component: MacRuby Keywords:
Cc:

Description

$ macruby -e "foo = Object.new; foo.instance_variable_set(:@bar, 1); foo.send(:remove_instance_variable, :@bar)"
instance variable @bar not defined (NameError)

I believe this bug is affecting rspec2 beta, more precisely: rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb Line 228:

def self.clear_ivars(instance)
  instance.instance_variables.each { |ivar| instance.send(:remove_instance_variable, ivar) }
end

Change History

Changed 19 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Should be fixed in r4370 (although I didn't test it very well).

Note: See TracTickets for help on using tickets.