-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write spec pseudocode for multi search
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|