diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-09-15 16:42:02 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-09-15 17:43:17 +0300 |
commit | b87ca7500f174cc9a4e90b262b02aa9bf695fbee (patch) | |
tree | 252237f0ea72354fbd2ec140580bcca7503a400f /spec/lib/ci/charts_spec.rb | |
parent | 88b3195ecfd2d0d74c4e76ce79961cb6db2f8643 (diff) | |
download | gitlab-ce-b87ca7500f174cc9a4e90b262b02aa9bf695fbee.tar.gz |
fix specs. Stage 7
Diffstat (limited to 'spec/lib/ci/charts_spec.rb')
-rw-r--r-- | spec/lib/ci/charts_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/ci/charts_spec.rb b/spec/lib/ci/charts_spec.rb index 236cfc2a1f6..24894e81983 100644 --- a/spec/lib/ci/charts_spec.rb +++ b/spec/lib/ci/charts_spec.rb @@ -4,14 +4,14 @@ describe "Charts" do context "build_times" do before do - @project = FactoryGirl.create(:project) - @commit = FactoryGirl.create(:commit, project: @project) - FactoryGirl.create(:build, commit: @commit) + @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 = Charts::BuildTime.new(@project) - chart.build_times.should == [2] + chart = Ci::Charts::BuildTime.new(@project) + expect(chart.build_times).to eq([2]) end end end |