Commit 5f32ebd5 authored by Sean McGivern's avatar Sean McGivern

Remove factories from AddForeignKeysToTodos spec

parent 0fdceb4a
...@@ -36,7 +36,7 @@ describe AddForeignKeysToTodos, :migration do ...@@ -36,7 +36,7 @@ describe AddForeignKeysToTodos, :migration do
end end
context 'add foreign key on note_id' do 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_note) { create_todo(note_id: note.id) }
let!(:todo_with_invalid_note) { create_todo(note_id: 4711) } let!(:todo_with_invalid_note) { create_todo(note_id: 4711) }
let!(:todo_without_note) { create_todo(note_id: nil) } let!(:todo_without_note) { create_todo(note_id: nil) }
......
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