summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-09 10:59:07 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-09 10:59:07 +0300
commitbc5fce44045a313b9bc9dfa698693bf594795a61 (patch)
tree2ba05573f7df7b921c981d31630d667e3ed2e4c8 /spec/features
parentb832d68576023ba9afe8d5ff745b45b648b65678 (diff)
downloadgitlab-ci-bc5fce44045a313b9bc9dfa698693bf594795a61.tar.gz
ProjectController specs
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects_spec.rb10
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