Sha256: b6ef1a2fcaf3ef0fe40eefccc2b6f2b0ff51b22335ec381676dc7316fe79a506

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

describe Numeric do
	context "#max" do
		it "returns the argument if the argument is greater" do
			1.max(2).should == 2
		end

		it "returns itself if the argument is less" do
			1.max(2).should == 2
		end
	end

	context "#min" do
		it "returns itself if the argument is greater" do
			1.min(2).should == 1
		end

		it "returns the argument if the argument is less" do
			1.min(2).should == 1
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sc-core-ext-1.2.1 spec/sc-core-ext/numeric_spec.rb
sc-core-ext-1.2.0 spec/sc-core-ext/numeric_spec.rb