blob: 17a6107cd5210bedd7ab7866e397012f224bdad1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require_relative '../../spec_helper'
describe "Rational#marshal_dump" do
it "is a private method" do
Rational.should have_private_instance_method(:marshal_dump, false)
end
it "dumps numerator and denominator" do
Rational(1, 2).send(:marshal_dump).should == [1, 2]
end
end
|