18 lines
405 B
Ruby
18 lines
405 B
Ruby
|
require 'spec_helper'
|
||
|
|
||
|
describe "Charts" do
|
||
|
|
||
|
context "build_times" do
|
||
|
before do
|
||
|
@project = FactoryGirl.create(:project)
|
||
|
@commit = FactoryGirl.create(:commit, project: @project)
|
||
|
FactoryGirl.create(:build, commit: @commit)
|
||
|
end
|
||
|
|
||
|
it 'should return build times in minutes' do
|
||
|
chart = Charts::BuildTime.new(@project)
|
||
|
chart.build_times.should == [2]
|
||
|
end
|
||
|
end
|
||
|
end
|