2014-09-26 07:42:09 +00:00
|
|
|
|
|
|
|
require_relative 'spec_helper'
|
|
|
|
|
|
|
|
require 'timecost/range'
|
|
|
|
|
|
|
|
describe TimeCost::Range do
|
|
|
|
let(:config) do { granularity: 0.5 } end
|
|
|
|
|
|
|
|
let(:commitA) { nil }
|
|
|
|
let(:commitB) { nil }
|
|
|
|
let(:commitC) { nil }
|
|
|
|
let(:commitD) { nil }
|
|
|
|
|
|
|
|
let(:rangeA) {
|
|
|
|
TimeCost::Range.new commitA, config
|
|
|
|
}
|
|
|
|
|
|
|
|
describe '.new' do
|
|
|
|
it "can be created from " do
|
|
|
|
assert_instance_of TimeCost::Range, rangeA
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
describe '.overlap?' do
|
|
|
|
it "must respond to .overlap?" do
|
|
|
|
end
|
|
|
|
|
|
|
|
it "must return false when ranges are not overlapping" do
|
|
|
|
end
|
|
|
|
|
|
|
|
it "must return true when ranges are overlapping" do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|