aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/numeric/to_int_spec.rb
blob: 4f1df3e042af79667ae1df607f06d9aaf3479594 (plain)
1
2
3
4
5
6
7
8
9
10
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)

describe "Numeric#to_int" do
  it "returns self#to_i" do
    obj = NumericSpecs::Subclass.new
    obj.should_receive(:to_i).and_return(:result)
    obj.to_int.should == :result
  end
end