Fixed styles, ProjectHook specs etc
This commit is contained in:
parent
c6298678f5
commit
e16cebac3e
22 changed files with 111 additions and 76 deletions
|
@ -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