BigW Consortium Gitlab

create.rb 655 Bytes
Newer Older
1
class Spinach::Features::ProjectCreate < Spinach::FeatureSteps
Nihad Abbasov committed
2 3
  include SharedAuthentication
  include SharedPaths
4
  include SharedUser
5

6
  step 'fill project form with valid data' do
7
    fill_in 'project_path', with: 'Empty'
8 9 10
    click_button "Create project"
  end

11
  step 'I should see project page' do
12 13
    expect(page).to have_content "Empty"
    expect(current_path).to eq namespace_project_path(Project.last.namespace, Project.last)
14 15
  end

16
  step 'I should see empty project instructions' do
17 18 19
    expect(page).to have_content "git init"
    expect(page).to have_content "git remote"
    expect(page).to have_content Project.last.url_to_repo
20 21
  end
end