summaryrefslogtreecommitdiff
path: root/spec/requests/ci/builds_spec.rb
blob: f68116c52aa9364c0f2014c0a807786874da7133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'spec_helper'

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

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

    it { expect(response.status).to eq(200) }
    it { expect(response.body).to include(@build.sha) }
  end
end