Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 263 Bytes
require File.dirname(__FILE__) + '/base'
describe Fixnum do
before do
@num = 2
end
it "counts kb" do
@num.kb.should == 2*1024
end
it "counts mb" do
@num.mb.should == 2*1024*1024
end
it "counts gb" do
@num.gb.should == 2*1024*1024*1024
end
end
Jump to Line
Something went wrong with that request. Please try again.