blob: f43a3982d718ec2759e1700e79cebf74b9c22178 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require 'spec_helper'
describe "Commits" do
before do
@commit = FactoryGirl.create :ci_commit
end
describe "GET /:project/refs/:ref_name/commits/:id/status.json" do
before do
get status_ci_project_commits_path(@commit.project, @commit.sha), format: :json
end
it { expect(response.status).to eq(200) }
it { expect(response.body).to include(@commit.sha) }
end
end
|