diff options
author | Sean McGivern <sean@gitlab.com> | 2019-03-12 09:58:13 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-03-12 09:58:26 +0000 |
commit | 5f32ebd568a7b144005b80a578c0c93cdfaa57e2 (patch) | |
tree | 6c731cb1adc9cd7a6bce2a32673e243ad35fc41d /spec | |
parent | 0fdceb4a80f471d1a6940c0031fd395627e44518 (diff) | |
download | gitlab-ce-5f32ebd568a7b144005b80a578c0c93cdfaa57e2.tar.gz |
Remove factories from AddForeignKeysToTodos spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/migrations/add_foreign_keys_to_todos_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/migrations/add_foreign_keys_to_todos_spec.rb b/spec/migrations/add_foreign_keys_to_todos_spec.rb index efd87173b9c..2500e2f8333 100644 --- a/spec/migrations/add_foreign_keys_to_todos_spec.rb +++ b/spec/migrations/add_foreign_keys_to_todos_spec.rb @@ -36,7 +36,7 @@ describe AddForeignKeysToTodos, :migration do end context 'add foreign key on note_id' do - let(:note) { create(:note) } # rubocop:disable RSpec/FactoriesInMigrationSpecs + let(:note) { table(:notes).create! } 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) } |