blob: 91282822a887a59f5db9cebe9d472c5eab9adfcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require File.expand_path('../../../spec_helper', __FILE__)
describe "NilClass#to_i" do
it "returns 0" do
nil.to_i.should == 0
end
it "does not cause NilClass to be coerced to Fixnum" do
(0 == nil).should == false
end
end
|