blob: 24894e8198380661b25750032988acb1efa2015d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require 'spec_helper'
describe "Charts" do
context "build_times" do
before do
@project = FactoryGirl.create(:ci_project)
@commit = FactoryGirl.create(:ci_commit, project: @project)
FactoryGirl.create(:ci_build, commit: @commit)
end
it 'should return build times in minutes' do
chart = Ci::Charts::BuildTime.new(@project)
expect(chart.build_times).to eq([2])
end
end
end
|