gitlab-org--gitlab-foss/spec/lib/ci/charts_spec.rb
Kamil Trzcinski 0f3deac362 Fix tests
2015-09-29 10:47:04 +02:00

16 lines
362 B
Ruby

require 'spec_helper'
describe "Charts" do
context "build_times" do
before do
@commit = FactoryGirl.create(:ci_commit)
FactoryGirl.create(:ci_build, commit: @commit)
end
it 'should return build times in minutes' do
chart = Ci::Charts::BuildTime.new(@commit.project)
expect(chart.build_times).to eq([2])
end
end
end