summaryrefslogtreecommitdiff
path: root/features/steps/project/create.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/project/create.rb')
-rw-r--r--features/steps/project/create.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/features/steps/project/create.rb b/features/steps/project/create.rb
index 5f5f806df36..60fa232672e 100644
--- a/features/steps/project/create.rb
+++ b/features/steps/project/create.rb
@@ -5,12 +5,14 @@ class Spinach::Features::ProjectCreate < Spinach::FeatureSteps
step 'fill project form with valid data' do
fill_in 'project_path', with: 'Empty'
- click_button "Create project"
+ page.within '#content-body' do
+ click_button "Create project"
+ end
end
step 'I should see project page' do
expect(page).to have_content "Empty"
- expect(current_path).to eq namespace_project_path(Project.last.namespace, Project.last)
+ expect(current_path).to eq project_path(Project.last)
end
step 'I should see empty project instructions' do