Commit b9b273ac authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Adjust rubocop offenses

parent 5780df0f
...@@ -13,7 +13,7 @@ class CreateRelatedIssuesTable < ActiveRecord::Migration ...@@ -13,7 +13,7 @@ class CreateRelatedIssuesTable < ActiveRecord::Migration
add_index :related_issues, [:issue_id, :related_issue_id], unique: true add_index :related_issues, [:issue_id, :related_issue_id], unique: true
add_foreign_key :related_issues, :issues, column: :issue_id add_concurrent_foreign_key :related_issues, :issues, column: :issue_id
add_foreign_key :related_issues, :issues, column: :related_issue_id add_concurrent_foreign_key :related_issues, :issues, column: :related_issue_id
end end
end end
...@@ -69,9 +69,9 @@ describe RelatedIssues::CreateService, service: true do ...@@ -69,9 +69,9 @@ describe RelatedIssues::CreateService, service: true do
expect(RelatedIssue.last).to have_attributes(issue: issue, related_issue: another_project_issue) expect(RelatedIssue.last).to have_attributes(issue: issue, related_issue: another_project_issue)
end end
it 'returns success message with Issue reference' do it 'returns success message with Issue reference' do
is_expected.to eq(message: "#{issue_a_ref} and #{another_project_issue_ref} were successfully related", status: :success) is_expected.to eq(message: "#{issue_a_ref} and #{another_project_issue_ref} were successfully related", status: :success)
end end
it 'creates notes' do it 'creates notes' do
# First two-way relation notes # First two-way relation notes
......
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