diff options
author | Rémy Coutable <remy@rymai.me> | 2018-03-30 17:18:44 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-04-06 17:41:52 +0200 |
commit | 3f598ad7cab303d5fd7865962900dce92ea8c036 (patch) | |
tree | 32e7a2665450617ba35e685d962880dcfe59ead3 /spec/migrations/add_foreign_keys_to_todos_spec.rb | |
parent | 4b035896c4ed188c0b4ab0e0b5d1d97e4fef9886 (diff) | |
download | gitlab-ce-3f598ad7cab303d5fd7865962900dce92ea8c036.tar.gz |
Ignore current RSpec/FactoriesInMigrationSpecs offenses
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/migrations/add_foreign_keys_to_todos_spec.rb')
-rw-r--r-- | spec/migrations/add_foreign_keys_to_todos_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/migrations/add_foreign_keys_to_todos_spec.rb b/spec/migrations/add_foreign_keys_to_todos_spec.rb index 4a22bd6f342..bf2fa5c0f56 100644 --- a/spec/migrations/add_foreign_keys_to_todos_spec.rb +++ b/spec/migrations/add_foreign_keys_to_todos_spec.rb @@ -4,8 +4,8 @@ require Rails.root.join('db', 'migrate', '20180201110056_add_foreign_keys_to_tod describe AddForeignKeysToTodos, :migration do let(:todos) { table(:todos) } - let(:project) { create(:project) } - let(:user) { create(:user) } + let(:project) { create(:project) } # rubocop:disable RSpec/FactoriesInMigrationSpecs + let(:user) { create(:user) } # rubocop:disable RSpec/FactoriesInMigrationSpecs context 'add foreign key on user_id' do let!(:todo_with_user) { create_todo(user_id: user.id) } @@ -34,7 +34,7 @@ describe AddForeignKeysToTodos, :migration do end context 'add foreign key on note_id' do - let(:note) { create(:note) } + let(:note) { create(:note) } # rubocop:disable RSpec/FactoriesInMigrationSpecs let!(:todo_with_note) { create_todo(note_id: note.id) } let!(:todo_with_invalid_note) { create_todo(note_id: 4711) } let!(:todo_without_note) { create_todo(note_id: nil) } |