diff options
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb index 241d0d5..7f2b3eb 100644 --- a/spec/features/projects_spec.rb +++ b/spec/features/projects_spec.rb @@ -50,5 +50,13 @@ describe "Projects" do it { page.should have_content @project.name } it { page.should have_content 'Integration with GitLab and other services' } end -end + describe "GET /projects/:id/run" do + before do + visit run_project_path(@project, ref: 'master') + end + + it { current_path.should == project_build_path(@project, @project.builds.last) } + it { page.should have_content @project.builds.last.git_commit_message } + end +end |