Commit e5df86f5 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix Rubocop offense in environments policy class

parent 4f2cc595
class EnvironmentPolicy < BasePolicy class EnvironmentPolicy < BasePolicy
alias_method :environment, :subject alias_method :environment, :subject
def rules def rules
......
...@@ -911,7 +911,7 @@ describe Ci::Build, :models do ...@@ -911,7 +911,7 @@ describe Ci::Build, :models do
it { is_expected.to eq(environment) } it { is_expected.to eq(environment) }
end end
context 'when referenced with a variable' do context 'when referenced with a variable' do
let(:build) do let(:build) do
create(:ci_build, pipeline: pipeline, environment: "foo-$CI_COMMIT_REF_NAME") create(:ci_build, pipeline: pipeline, environment: "foo-$CI_COMMIT_REF_NAME")
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment