Commit c5dd5ce2 authored by Shinya Maeda's avatar Shinya Maeda

Fix build execute shared examples

parent 7569a4bd
......@@ -13,6 +13,7 @@ RSpec.shared_examples 'restricts access to protected environments' do |developer
allow(project).to receive(:feature_available?).and_call_original
allow(project).to receive(:feature_available?)
.with(:protected_environments).and_return(true)
allow(build).to receive(:project) { project }
project.add_developer(user)
protected_environment
......
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