Skip to content

Commit

Permalink
Write spec pseudocode for multi search
Browse files Browse the repository at this point in the history
  • Loading branch information
ellnix committed Feb 9, 2024
1 parent 6a3c04b commit 193f063
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/multi_search/result_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'spec_helper'

describe 'MeiliSearch::Rails::MultiSearchResult' do
# TODO: Write specs
end

32 changes: 32 additions & 0 deletions spec/multi_search_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
require 'spec_helper'

describe 'multi-search' do
context 'with class keys' do
it 'returns ORM objects' do
# TODO: Write spec
end
end

context 'with symbol keys' do
it 'returns hashes' do
# TODO: Write spec
end

context 'when class_name is specified' do
it 'returns ORM objects' do
# TODO: Write spec
end

it 'throws error if class cannot be found' do
# TODO: Write spec
end
end
end

context 'with a mixture of symbol and class keys' do
it 'returns a mixture of ORM objects and hashes' do
# TODO: Write spec
end
end
end

0 comments on commit 193f063

Please sign in to comment.