Skip to content
This repository
tree: 461594e042
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 11 lines (9 sloc) 0.305 kb
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
Something went wrong with that request. Please try again.