Commit fb1b7b00 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix environment model specs related to protected actions

parent e3cb7144
...@@ -227,7 +227,10 @@ describe Environment, models: true do ...@@ -227,7 +227,10 @@ describe Environment, models: true do
context 'when user is allowed to stop environment' do context 'when user is allowed to stop environment' do
before do before do
project.add_master(user) project.add_developer(user)
create(:protected_branch, :developers_can_merge,
name: 'master', project: project)
end end
context 'when action did not yet finish' do context 'when action did not yet finish' do
......
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