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