BigW Consortium Gitlab

Commit 9d72d902 by Kamil Trzcinski

Make rubocop happy

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