Update specs

This commit is contained in:
blackst0ne 2017-03-11 21:47:48 +11:00
parent 5c209d91c2
commit 93e204ea52

View file

@ -53,7 +53,6 @@ feature "New project", feature: true do
click_button('Create project')
expect(page).to have_css '.project-edit-errors .alert.alert-danger'
expect(find("[name='project[visibility_level]'][checked].option-title").value).to eq('Internal')
end
it "selects the group namespace" do
@ -61,6 +60,12 @@ feature "New project", feature: true do
expect(namespace.text).to eq group.name
end
it 'selects the visibility level' do
level = Gitlab::VisibilityLevel.options['Internal']
expect(find_field("project_visibility_level_#{level}")).to be_checked
end
end
end
end