summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-13 08:36:44 -0500
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-13 08:36:44 -0500
commit886bfb0a4ddeb546b9e14f7671273466dc5708ba (patch)
tree1d54abe5654c1a506f0653e9b9bb85d3855fb99e
parent0d43b9270677106f3aa37112da1dd0482ed40b55 (diff)
downloadgitlab-ce-886bfb0a4ddeb546b9e14f7671273466dc5708ba.tar.gz
Initial specs for pipelines
-rw-r--r--spec/features/pipelines_spec.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/features/pipelines_spec.rb b/spec/features/pipelines_spec.rb
new file mode 100644
index 00000000000..1e0c58be979
--- /dev/null
+++ b/spec/features/pipelines_spec.rb
@@ -0,0 +1,25 @@
+require 'spec_helper'
+
+describe "Pipelines" do
+ include GitlabRoutingHelper
+
+ let(:project) { create(:empty_project) }
+ let(:user) { create(:user) }
+ before { login_as(user) }
+
+ describe "GET /:project/pipelines" do
+
+ end
+
+ describe "GET /:project/pipelines/:id" do
+ let(:pipeline) { create(:ci_commit, project: project, ref: 'master') }
+
+ before do
+ create(:ci_build, :success, commit: pipeline)
+ end
+
+ before { visit namespace_project_pipeline_path(project.namespace, project, pipeline) }
+
+ it { expect(page).to()}
+ end
+end