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

Remove dead Event#new_branch? method
This commit is contained in:
Valeriy Sizov 2014-11-05 16:25:35 +02:00
commit 5715df2067
2 changed files with 0 additions and 5 deletions

View file

@ -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

View file

@ -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 }