blob: 116899b0adb956cdaa7b80db381ef85efa5776d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require_relative '../../spec_helper'
describe "Complex#marshal_dump" do
it "is a private method" do
Complex.should have_private_instance_method(:marshal_dump, false)
end
it "dumps real and imaginary parts" do
Complex(1, 2).send(:marshal_dump).should == [1, 2]
end
end
|