Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Complex#marshal_dump and Rational#marshal_dump shouldn't copy instanc…

…e variables.

See also r36538 [ruby-core:45775] [Bug #6625]
  • Loading branch information...
commit fae4305174a32458bfef15abef443d50400b54f6 1 parent 51df79f
@nurse nurse authored
View
6 core/complex/marshal_dump_spec.rb
@@ -5,11 +5,5 @@
it "dumps real and imaginary parts" do
Complex(1, 2).marshal_dump.should == [1, 2]
end
-
- it "dumps instance variables" do
- c = Complex(1, 2)
- c.instance_variable_set(:@ivar, :ivar)
- c.marshal_dump.instance_variable_get(:@ivar).should == :ivar
- end
end
end
View
6 core/rational/marshal_dump_spec.rb
@@ -5,11 +5,5 @@
it "dumps numerator and denominator" do
Rational(1, 2).marshal_dump.should == [1, 2]
end
-
- it "dumps instance variables" do
- r = Rational(1, 2)
- r.instance_variable_set(:@ivar, :ivar)
- r.marshal_dump.instance_variable_get(:@ivar).should == :ivar
- end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.