diff options
| author | Mike Greiling <mgreiling@gitlab.com> | 2017-06-06 08:28:39 +0000 |
|---|---|---|
| committer | Phil Hughes <me@iamphill.com> | 2017-06-06 08:28:39 +0000 |
| commit | e245d7eebe747378f4158b30634ab0da4df59117 (patch) | |
| tree | c710812e72c181c066728817ef06c90e836acee3 /spec/helpers | |
| parent | 17feb2faa71416b3459003eeb2a877f2c65dd3ef (diff) | |
| download | gitlab-ce-e245d7eebe747378f4158b30634ab0da4df59117.tar.gz | |
Resolve "When changing project visibility setting, change other dropdowns automatically"
Diffstat (limited to 'spec/helpers')
| -rw-r--r-- | spec/helpers/projects_helper_spec.rb | 4 | ||||
| -rw-r--r-- | spec/helpers/visibility_level_helper_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb index 54c5ba57bdf..a695621b87a 100644 --- a/spec/helpers/projects_helper_spec.rb +++ b/spec/helpers/projects_helper_spec.rb @@ -257,7 +257,7 @@ describe ProjectsHelper do result = helper.project_feature_access_select(:issues_access_level) expect(result).to include("Disabled") expect(result).to include("Only team members") - expect(result).not_to include("Everyone with access") + expect(result).to have_selector('option[disabled]', text: "Everyone with access") end end @@ -272,7 +272,7 @@ describe ProjectsHelper do expect(result).to include("Disabled") expect(result).to include("Only team members") - expect(result).not_to include("Everyone with access") + expect(result).to have_selector('option[disabled]', text: "Everyone with access") expect(result).to have_selector('option[selected]', text: "Only team members") end end diff --git a/spec/helpers/visibility_level_helper_spec.rb b/spec/helpers/visibility_level_helper_spec.rb index 8942b00b128..ad19cf9263d 100644 --- a/spec/helpers/visibility_level_helper_spec.rb +++ b/spec/helpers/visibility_level_helper_spec.rb @@ -37,7 +37,7 @@ describe VisibilityLevelHelper do it "describes public projects" do expect(project_visibility_level_description(Gitlab::VisibilityLevel::PUBLIC)) - .to eq "The project can be cloned without any authentication." + .to eq "The project can be accessed without any authentication." end end |
