Sha256: b9aa695137d700c69abec6c9ea6aac8042667cd7dca16f873712160a13633d4f

Contents?: true

Size: 544 Bytes

Versions: 38

Compression:

Stored size: 544 Bytes

Contents

require 'spec_helper'

class FakesController < ApplicationController
  include Spree::Core::ControllerHelpers::Search
end

describe Spree::Core::ControllerHelpers::Search, type: :controller do
  controller(FakesController) {}

  describe '#build_searcher' do
    it 'returns Spree::Core::Search::Base instance' do
      allow(controller).to receive_messages(try_spree_current_user: create(:user),
                      current_currency: 'USD')
      expect(controller.build_searcher({}).class).to eq Spree::Core::Search::Base
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
solidus_core-1.2.3 spec/lib/spree/core/controller_helpers/search_spec.rb
solidus_core-1.1.4 spec/lib/spree/core/controller_helpers/search_spec.rb
solidus_core-1.0.7 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.3.0.rc1 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.1.5 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.2.1 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.2.0 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.1.4 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.2.0.rc3 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.2.0.rc2 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.2.0.rc1 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.1.3 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.1.2 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.0.10 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.1.1 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.1.0 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.1.0.rc4 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.0.9 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.1.0.rc3 spec/lib/spree/core/controller_helpers/search_spec.rb
spree_core-3.1.0.rc2 spec/lib/spree/core/controller_helpers/search_spec.rb