spec/gitlab/client/commits_spec.rb in gitlab-4.1.0 vs spec/gitlab/client/commits_spec.rb in gitlab-4.2.0

- old
+ new

@@ -146,19 +146,19 @@ ] end let(:query) do { - branch_name: 'dev', + branch: 'dev', commit_message: 'refactors everything', actions: actions, author_email: 'joe@sample.org', author_name: 'Joe Sample' } end before do - stub_post("/projects/6/repository/commits", 'project_commit_create').with(query: query) + stub_post("/projects/6/repository/commits", 'project_commit_create').with(body: query) @commit = Gitlab.create_commit(6, 'dev', 'refactors everything', actions, {author_email: 'joe@sample.org', author_name: 'Joe Sample'}) end it "should return id of a created commit" do expect(@commit.id).to eq('ed899a2f4b50b4370feeea94676502b42383c746')