summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-03-11 21:47:48 +1100
committerblackst0ne <blackst0ne.ru@gmail.com>2017-03-11 21:47:48 +1100
commit93e204ea524830baa47be8d6bbeb6f5aa39d7991 (patch)
tree37ad52069156494286c7aece52fc4b0cb972e9d6
parent5c209d91c2748935c70b7906015a430d1b85b4b0 (diff)
downloadgitlab-ce-93e204ea524830baa47be8d6bbeb6f5aa39d7991.tar.gz
Update specs
-rw-r--r--spec/features/projects/new_project_spec.rb7
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