Fixed styles, ProjectHook specs etc
This commit is contained in:
parent
c6298678f5
commit
e16cebac3e
22 changed files with 111 additions and 76 deletions
|
@ -7,7 +7,7 @@ describe ExtractsPath do
|
|||
|
||||
before do
|
||||
@project = project
|
||||
project.stub(:ref_names).and_return(['master', 'foo/bar/baz', 'v1.0.0', 'v2.0.0'])
|
||||
project.stub(repository: stub(ref_names: ['master', 'foo/bar/baz', 'v1.0.0', 'v2.0.0']))
|
||||
project.stub(path_with_namespace: 'gitlab/gitlab-ci')
|
||||
end
|
||||
|
||||
|
|
|
@ -71,8 +71,9 @@ describe Project, "Hooks" do
|
|||
|
||||
context "when gathering commit data" do
|
||||
before do
|
||||
@oldrev, @newrev, @ref = project.fresh_commits(2).last.sha, project.fresh_commits(2).first.sha, 'refs/heads/master'
|
||||
@commit = project.fresh_commits(2).first
|
||||
@oldrev, @newrev, @ref = project.repository.fresh_commits(2).last.sha,
|
||||
project.repository.fresh_commits(2).first.sha, 'refs/heads/master'
|
||||
@commit = project.repository.fresh_commits(2).first
|
||||
|
||||
# Fill nil/empty attributes
|
||||
project.description = "This is a description"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue