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
c49cb40f
Commit
c49cb40f
authored
Nov 03, 2014
by
Ciro Santilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead Event#new_branch? method
parent
1b140380
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 @
c49cb40f
...
...
@@ -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 @
c49cb40f
...
...
@@ -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