diff options
Diffstat (limited to 'qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb')
-rw-r--r-- | qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb index af4e7126c29..34a7431e328 100644 --- a/qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb +++ b/qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb @@ -5,13 +5,13 @@ module QA describe 'Project', :requires_admin do shared_examples 'successful project creation' do it 'creates a new project' do - Page::Project::Show.perform do |project| - expect(project).to have_content(project_name) - expect(project).to have_content( + Page::Project::Show.perform do |project_page| + expect(project_page).to have_content(project_name) + expect(project_page).to have_content( /Project \S?#{project_name}\S+ was successfully created/ ) - expect(project).to have_content('create awesome project test') - expect(project).to have_content('The repository for this project is empty') + expect(project_page).to have_content('create awesome project test') + expect(project_page).to have_content('The repository for this project is empty') end end end |