Commit 7f08eeed authored by Shinya Maeda's avatar Shinya Maeda

Use trait for builds_enabled of project

parent e404ab51
......@@ -494,10 +494,7 @@ feature 'Builds', :feature do
end
context 'when Project is public and builds_access_level is Everyone with access' do
let(:project) { create(:project, :public) }
before do
project.project_feature.update_attribute('builds_access_level', ProjectFeature::ENABLED)
end
let(:project) { create(:project, :public, :builds_enabled) }
context 'when user belongs to the project' do
before 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