Commit 9d72d902 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Make rubocop happy

parent 7993fc1b
......@@ -2,6 +2,6 @@ class AddIndexForPipelineUserId < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
def change
add_index :ci_commits, :user_id
add_concurrent_index :ci_commits, :user_id
end
end
......@@ -24,7 +24,7 @@ describe CreateCommitBuildsService, services: true do
it { expect(pipeline).to be_valid }
it { expect(pipeline).to be_persisted }
it { expect(pipeline).to eq(project.pipelines.last) }
it { expect(pipeline).to have_attributes(:user => user) }
it { expect(pipeline).to have_attributes(user: user) }
it { expect(pipeline.builds.first).to be_kind_of(Ci::Build) }
end
......
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