GitLab steht Mittwoch, den 23. September, zwischen 10:00 und 12:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit c93a895a authored by Timothy Andrew's avatar Timothy Andrew

Fix `git_push_service_spec`

1. Caused by incorrect test setup. The user wasn't added to the project,
   so protected branch creation failed authorization.

2. Change setup for a different test (`Event.last` to
   `Event.find_by_action`) because our ` << ...` addition
   was causing a conflict.
parent 6d841eaa
......@@ -7,6 +7,7 @@ describe GitPushService, services: true do
let(:project) { create :project }
before do << [user, :master]
@blankrev = Gitlab::Git::BLANK_SHA
@oldrev = sample_commit.parent_id
@newrev =
......@@ -172,7 +173,7 @@ describe GitPushService, services: true do
describe "Push Event" do
before do
service = execute_service(project, user, @oldrev, @newrev, @ref )
@event = Event.last
@event = Event.find_by_action(Event::PUSHED)
@push_data = service.push_data
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment