Fix Rubocop offense in environments policy class
This commit is contained in:
parent
4f2cc5951f
commit
e5df86f54d
|
@ -1,5 +1,4 @@
|
|||
class EnvironmentPolicy < BasePolicy
|
||||
|
||||
alias_method :environment, :subject
|
||||
|
||||
def rules
|
||||
|
|
|
@ -911,7 +911,7 @@ describe Ci::Build, :models do
|
|||
it { is_expected.to eq(environment) }
|
||||
end
|
||||
|
||||
context 'when referenced with a variable' do
|
||||
context 'when referenced with a variable' do
|
||||
let(:build) do
|
||||
create(:ci_build, pipeline: pipeline, environment: "foo-$CI_COMMIT_REF_NAME")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue