diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-11 19:25:11 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-11 19:25:11 +0200 |
commit | 06e77b544a2e1980fd6b35b2000bfbec59c9391d (patch) | |
tree | 04f2f5d644aadc7eec8955d72bc637f13ecb204f /spec/lib | |
parent | 0c6ddea904925ddced46646466357a016cbad011 (diff) | |
download | gitlab-ci-06e77b544a2e1980fd6b35b2000bfbec59c9391d.tar.gz |
Fix Charts::BuildTime spec
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/charts_spec.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/lib/charts_spec.rb b/spec/lib/charts_spec.rb index cc2c704..f45a578 100644 --- a/spec/lib/charts_spec.rb +++ b/spec/lib/charts_spec.rb @@ -7,9 +7,10 @@ describe "Charts" do @project = FactoryGirl.create(:project) FactoryGirl.create(:build, :project_id => @project.id) end - it { + + it 'should return build times in minutes' do chart = Charts::BuildTime.new(@project) - chart.build_times.should == [120] - } + chart.build_times.should == [2] + end end -end
\ No newline at end of file +end |