Sha256: 1bc5a9975444441d0e525894014908758830408dafb1ae6d9887e0329b522cc5
Contents?: true
Size: 768 Bytes
Versions: 64
Compression:
Stored size: 768 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes' describe "Numeric#quo" do ruby_version_is ""..."1.9" do it "returns the result of calling self#/ with other" do obj = NumericSub.new obj.should_receive(:/).with(19).and_return(:result) obj.quo(19).should == :result end end ruby_version_is "1.9" do it "returns the result of calling self#/ with other" do obj = NumericSub.new obj.should_receive(:coerce).twice.and_return([19,19]) obj.should_receive(:<=>).any_number_of_times.and_return(1) obj.should_receive(:/).and_return(20) obj.quo(19).should == 20 end end end
Version data entries
64 entries across 64 versions & 1 rubygems