Skip to content
Snippets Groups Projects
Commit 5715df20 authored by Valeriy Sizov's avatar Valeriy Sizov
Browse files

Merge pull request #8233 from cirosantilli/rm-new-branch-dead

Remove dead Event#new_branch? method
parents 2b00de71 c49cb40f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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 }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment