Commit e5df86f5 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix Rubocop offense in environments policy class

parent 4f2cc595
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
......
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