summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2019-03-12 09:58:13 +0000
committerSean McGivern <sean@gitlab.com>2019-03-12 09:58:26 +0000
commit5f32ebd568a7b144005b80a578c0c93cdfaa57e2 (patch)
tree6c731cb1adc9cd7a6bce2a32673e243ad35fc41d /spec
parent0fdceb4a80f471d1a6940c0031fd395627e44518 (diff)
downloadgitlab-ce-5f32ebd568a7b144005b80a578c0c93cdfaa57e2.tar.gz
Remove factories from AddForeignKeysToTodos spec
Diffstat (limited to 'spec')
-rw-r--r--spec/migrations/add_foreign_keys_to_todos_spec.rb2
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) }