blob: 46e9267ebd33b46ded562db5ea7961ff1746a6c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require File.expand_path('../../../spec_helper', __FILE__)
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
|