Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
app/models/event.rb
app/models/event.rb
+0
-4
spec/models/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
...
@@ -186,10 +186,6 @@ class Event < ActiveRecord::Base
data
[
:ref
][
"refs/heads"
]
data
[
:ref
][
"refs/heads"
]
end
end
def
new_branch?
commit_from
=~
/^00000/
end
def
new_ref?
def
new_ref?
commit_from
=~
/^00000/
commit_from
=~
/^00000/
end
end
...
...
spec/models/event_spec.rb
View file @
c49cb40f
...
@@ -60,7 +60,6 @@ describe Event do
...
@@ -60,7 +60,6 @@ describe Event do
it
{
@event
.
push?
.
should
be_true
}
it
{
@event
.
push?
.
should
be_true
}
it
{
@event
.
proper?
.
should
be_true
}
it
{
@event
.
proper?
.
should
be_true
}
it
{
@event
.
new_branch?
.
should
be_true
}
it
{
@event
.
tag?
.
should
be_false
}
it
{
@event
.
tag?
.
should
be_false
}
it
{
@event
.
branch_name
.
should
==
"master"
}
it
{
@event
.
branch_name
.
should
==
"master"
}
it
{
@event
.
author
.
should
==
@user
}
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