diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-03-11 21:47:48 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-03-11 21:47:48 +1100 |
commit | 93e204ea524830baa47be8d6bbeb6f5aa39d7991 (patch) | |
tree | 37ad52069156494286c7aece52fc4b0cb972e9d6 | |
parent | 5c209d91c2748935c70b7906015a430d1b85b4b0 (diff) | |
download | gitlab-ce-93e204ea524830baa47be8d6bbeb6f5aa39d7991.tar.gz |
Update specs
-rw-r--r-- | spec/features/projects/new_project_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/features/projects/new_project_spec.rb b/spec/features/projects/new_project_spec.rb index 651a46f62b1..1dc1179c795 100644 --- a/spec/features/projects/new_project_spec.rb +++ b/spec/features/projects/new_project_spec.rb @@ -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 |