Welcome to mirror list, hosted at ThFree Co, Russian Federation.

builds_spec.rb « requests « ci « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 73d540e372aa47551be0b40e17e850883218746e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'

describe "Builds" do
  before do
    @project = FactoryGirl.create :project
    @commit = FactoryGirl.create :commit, project: @project
    @build = FactoryGirl.create :build, commit: @commit
  end

  describe "GET /:project/builds/:id/status.json" do
    before do
      get status_project_build_path(@project, @build), format: :json
    end

    it { response.status.should == 200 }
    it { response.body.should include(@build.sha) }
  end
end