BigW Consortium Gitlab

create.rb 666 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'
Tim Zallmann committed
8 9
    page.within '#content-body' do
      click_button "Create project"
10
    end
11 12
  end

13
  step 'I should see project page' do
14
    expect(page).to have_content "Empty"
15
    expect(current_path).to eq project_path(Project.last)
16 17
  end

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