BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
5715df20
Commit
5715df20
authored
Nov 05, 2014
by
Valeriy Sizov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8233 from cirosantilli/rm-new-branch-dead
Remove dead Event#new_branch? method
parents
2b00de71
c49cb40f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
event.rb
app/models/event.rb
+0
-4
event_spec.rb
spec/models/event_spec.rb
+0
-1
No files found.
app/models/event.rb
View file @
5715df20
...
...
@@ -186,10 +186,6 @@ class Event < ActiveRecord::Base
data
[
:ref
][
"refs/heads"
]
end
def
new_branch?
commit_from
=~
/^00000/
end
def
new_ref?
commit_from
=~
/^00000/
end
...
...
spec/models/event_spec.rb
View file @
5715df20
...
...
@@ -60,7 +60,6 @@ describe Event do
it
{
@event
.
push?
.
should
be_true
}
it
{
@event
.
proper?
.
should
be_true
}
it
{
@event
.
new_branch?
.
should
be_true
}
it
{
@event
.
tag?
.
should
be_false
}
it
{
@event
.
branch_name
.
should
==
"master"
}
it
{
@event
.
author
.
should
==
@user
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment