summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-03-18 21:04:53 -0300
committerFelipe Artur <felipefac@gmail.com>2016-03-18 21:04:53 -0300
commit8b830b8c3b32774e8ccf562b8bc9dbce3ecf3073 (patch)
tree7898541a9362cc62f738ebc1812d022d422fe841 /spec/features
parentb959ae553b1243e081d557b1e545d30830931e5b (diff)
downloadgitlab-ce-8b830b8c3b32774e8ccf562b8bc9dbce3ecf3073.tar.gz
Fix specs
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects_spec.rb8
-rw-r--r--spec/features/security/group_access_spec.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb
index ed97b6cb577..e54a5a0b72a 100644
--- a/spec/features/projects_spec.rb
+++ b/spec/features/projects_spec.rb
@@ -12,25 +12,25 @@ feature 'Project', feature: true do
it 'parses Markdown' do
project.update_attribute(:description, 'This is **my** project')
visit path
- expect(page).to have_css('.project-home-desc > p > strong')
+ expect(page).to have_css('.cover-title > p > strong')
end
it 'passes through html-pipeline' do
project.update_attribute(:description, 'This project is the :poop:')
visit path
- expect(page).to have_css('.project-home-desc > p > img')
+ expect(page).to have_css('.cover-title > p > img')
end
it 'sanitizes unwanted tags' do
project.update_attribute(:description, "```\ncode\n```")
visit path
- expect(page).not_to have_css('.project-home-desc code')
+ expect(page).not_to have_css('.cover-title code')
end
it 'permits `rel` attribute on links' do
project.update_attribute(:description, 'https://google.com/')
visit path
- expect(page).to have_css('.project-home-desc a[rel]')
+ expect(page).to have_css('.cover-title a[rel]')
end
end
diff --git a/spec/features/security/group_access_spec.rb b/spec/features/security/group_access_spec.rb
index 0194581dfd1..55bbeafba33 100644
--- a/spec/features/security/group_access_spec.rb
+++ b/spec/features/security/group_access_spec.rb
@@ -4,7 +4,7 @@ describe 'Group access', feature: true do
include AccessMatchers
def group
- @group ||= create(:group)
+ @group ||= create(:group, visibility_level: Gitlab::VisibilityLevel::PUBLIC)
end
def create_project(access_level)