Sha256: 3e45834ee6774e628459af400beb248fa3b1f69a431e4f95425480b6c3fcd0d3
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
require File.expand_path("../test_helper", __FILE__) class SearchFlipTest < SearchFlip::TestCase def test_msearch ProductIndex.import create(:product) CommentIndex.import create(:comment) responses = SearchFlip.msearch([ProductIndex.match_all, CommentIndex.match_all]) assert_equal 2, responses.size assert_equal 1, responses[0].total_entries assert_equal 1, responses[1].total_entries end def test_aliases assert SearchFlip.aliases(actions: [ add: { index: "products", alias: "alias1" } ]) assert SearchFlip.aliases(actions: [ remove: { index: "products", alias: "alias1" } ]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
search_flip-1.1.0 | test/search_flip_test.rb |
search_flip-1.0.0 | test/search_flip_test.rb |