Skip to content

Commit 79fe56a

Browse files
committed
Remove integration spec file & private method test
- Specs are all moved to their own files! - The remaining tests were unit tests on the `meilisearch_settings_changed?` method which should be tested but not this way. Postponing until the logic has been refactored out of the MeiliSearch::Rails module. - Do not require every ActiveRecord table in every test - Some require statements that were missing were added in this commit
1 parent eefe6be commit 79fe56a

File tree

4 files changed

+3
-25
lines changed

4 files changed

+3
-25
lines changed

spec/integration_spec.rb

Lines changed: 0 additions & 22 deletions
This file was deleted.

spec/options_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
require 'support/models/book'
44
require 'support/models/animals'
55
require 'support/models/people'
6+
require 'support/models/vegetable'
7+
require 'support/models/fruit'
68
require 'support/models/disabled_models'
79
require 'support/models/queued_models'
810

spec/settings_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
let(:public_songs_index) { safe_index_uid('Songs') }
160160

161161
it 'targets multiple indexes' do
162+
Song.clear_index!(true)
162163
songs =
163164
[
164165
Song.create!(name: 'Coconut nut', artist: 'Smokey Mountain', premium: false, released: true),

spec/support/active_record_classes.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)