BigW Consortium Gitlab

Improve git_push service specs

parent 8fae6ad7
......@@ -14,6 +14,32 @@ describe GitPushService do
@ref = 'refs/heads/master'
end
describe 'Push branches' do
context 'new branch' do
subject do
service.execute(project, user, @blankrev, @newrev, @ref)
end
it { should be_true }
end
context 'existing branch' do
subject do
service.execute(project, user, @oldrev, @newrev, @ref)
end
it { should be_true }
end
context 'rm branch' do
subject do
service.execute(project, user, @oldrev, @blankrev, @ref)
end
it { should be_true }
end
end
describe "Git Push Data" do
before do
service.execute(project, user, @oldrev, @newrev, @ref)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment