From 93bf4367b60e5f25a50d40ff348047ea77e3610d Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 3 Mar 2018 00:02:50 -0800 Subject: [PATCH] Fixed Gemfile and added more tests --- Gemfile | 2 -- test/highlight_test.rb | 5 +++++ test/marshal_test.rb | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) 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