summaryrefslogtreecommitdiff
path: root/spec/lib/charts_spec.rb
blob: 2f277238873a2d245da702d0161282492f967a8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'spec_helper'

describe Charts::BuildTime 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 = described_class.new(@project)
    expect(chart.build_times).to eq [2]
  end
end