summaryrefslogtreecommitdiff
path: root/features/steps/project/create_project.rb
blob: b9b4534ed6874d91a7659fbac528fe5dff99752b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class CreateProject < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedPaths

  And 'fill project form with valid data' do
    fill_in 'project_name', :with => 'NewProject'
    click_button "Create project"
  end

  Then 'I should see project page' do
    current_path.should == project_path(Project.last)
    page.should have_content "NewProject"
  end

  And 'I should see empty project instuctions' do
    page.should have_content "git init"
    page.should have_content "git remote"
    page.should have_content Project.last.url_to_repo
  end
end