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/policies | |
parent | e950830ba6a0efa3b0992e6e55cb5b5842f8573a (diff) | |
download | gitlab-ce-061bb6eb6ed0ca6be3c571b3fcfd14a6f9729205.tar.gz |
More improvements to presenters23563-document-presenters
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/policies')
-rw-r--r-- | spec/policies/base_policy_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/policies/base_policy_spec.rb b/spec/policies/base_policy_spec.rb index 439d6436f34..63acc0b68cd 100644 --- a/spec/policies/base_policy_spec.rb +++ b/spec/policies/base_policy_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe BasePolicy, models: true do - let(:build) { create(:ci_build) } + let(:build) { Ci::Build.new } describe '.class_for' do it 'detects policy class based on the subject ancestors' do @@ -9,7 +9,7 @@ describe BasePolicy, models: true do end it 'detects policy class for a presented subject' do - presentee = Ci::Build::Presenter.new(build) + presentee = Ci::BuildPresenter.new(build) expect(described_class.class_for(presentee)).to eq(Ci::BuildPolicy) end |