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