Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2019-03-12 12:58:13 +0300
committerSean McGivern <sean@gitlab.com>2019-03-12 12:58:26 +0300
commit5f32ebd568a7b144005b80a578c0c93cdfaa57e2 (patch)
tree6c731cb1adc9cd7a6bce2a32673e243ad35fc41d /spec/migrations
parent0fdceb4a80f471d1a6940c0031fd395627e44518 (diff)
Remove factories from AddForeignKeysToTodos spec
Diffstat (limited to 'spec/migrations')
-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) }