gitlab-org--gitlab-foss/spec/requests/ci/builds_spec.rb
Dmitriy Zaporozhets cc4ef4da11 Refactor CI tests
2015-09-09 14:17:16 +02:00

18 lines
470 B
Ruby

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