summaryrefslogtreecommitdiff
path: root/spec/lib/charts_spec.rb
blob: 60d1b5a6bfb6170a7cb1dd387d43e4baff200bbf (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)
    chart.build_times.should eq [2]
  end
end