diff --git a/Gemfile b/Gemfile index cd7418b..01b6084 100644 --- a/Gemfile +++ b/Gemfile @@ -10,8 +10,6 @@ gem "typhoeus" gem "activejob", "~> 5.2.0.rc1" gem "redis" gem "connection_pool" -gem "faraday", path: "~/forks/faraday" -gem "ethon", path: "~/forks/ethon" # kaminari gem "actionpack", "~> 5.2.0.rc1" diff --git a/test/highlight_test.rb b/test/highlight_test.rb index 6e8b659..0f6c501 100644 --- a/test/highlight_test.rb +++ b/test/highlight_test.rb @@ -86,4 +86,9 @@ class HighlightTest < Minitest::Test assert highlight.include?("Cinema") end end + + def test_search_highlights_method + store_names ["Two Door Cinema Club"] + assert_equal "Two Door Cinema Club", Product.search("cinema", highlight: true).first.search_highlights[:name] + end end diff --git a/test/marshal_test.rb b/test/marshal_test.rb index cfc3f2a..df3ebea 100644 --- a/test/marshal_test.rb +++ b/test/marshal_test.rb @@ -5,4 +5,9 @@ class MarshalTest < Minitest::Test store_names ["Product A"] assert Marshal.dump(Product.search("*").results) end + + def test_marshal_highlights + store_names ["Product A"] + assert Marshal.dump(Product.search("product", highlight: true, load: {dumpable: true}).results) + end end -- libgit2 0.21.0