Remove unused spree code

This commit is contained in:
Luis Ramos
2020-09-05 15:03:03 +01:00
parent ce2f0a5b9e
commit 5bf91cb140
2 changed files with 0 additions and 14 deletions

View File

@@ -21,8 +21,6 @@
# a.get :color
# a.preferred_color
#
require "spree/core/search/base"
module Spree
class AppConfiguration < Preferences::Configuration
# Should state/state_name be required
@@ -156,12 +154,5 @@ module Spree
# Enable cache
preference :enable_products_cache?, :boolean,
default: (Rails.env.production? || Rails.env.staging?)
# searcher_class allows spree extension writers to provide their own Search class
def searcher_class
@searcher_class ||= Spree::Core::Search::Base
end
attr_writer :searcher_class
end
end

View File

@@ -14,9 +14,4 @@ describe Spree::AppConfiguration do
Spree::Config.site_name = "Spree::Config TEST SITE NAME"
expect(Spree::Config.site_name).to eq "Spree::Config TEST SITE NAME"
end
it "uses base searcher class by default" do
prefs.searcher_class = nil
expect(prefs.searcher_class).to eq Spree::Core::Search::Base
end
end