diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-10 17:41:04 -0500 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-18 16:38:35 +0100 |
commit | 061bb6eb6ed0ca6be3c571b3fcfd14a6f9729205 (patch) | |
tree | 2b87e3ea5d1e67b19c515891d19b466c80040a04 /spec/models | |
parent | e950830ba6a0efa3b0992e6e55cb5b5842f8573a (diff) | |
download | gitlab-ce-23563-document-presenters.tar.gz |
More improvements to presenters23563-document-presenters
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/concerns/presentable_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/concerns/presentable_spec.rb b/spec/models/concerns/presentable_spec.rb index 6640a5e1377..941647a79fb 100644 --- a/spec/models/concerns/presentable_spec.rb +++ b/spec/models/concerns/presentable_spec.rb @@ -1,11 +1,11 @@ require 'spec_helper' describe Presentable do - let(:build) { create(:ci_build) } + let(:build) { Ci::Build.new } describe '#present' do it 'returns a presenter' do - expect(build.present).to be_a(Ci::Build::Presenter) + expect(build.present).to be_a(Ci::BuildPresenter) end it 'takes optional attributes' do |