Sha256: 31e1c03b64c9721a0ecc4fcb93c3947830d0e21002ef4e6b4b6e4abc60dac3ca
Contents?: true
Size: 611 Bytes
Versions: 11
Compression:
Stored size: 611 Bytes
Contents
require 'rails_helper' class FakesController < ApplicationController include Spree::Core::ControllerHelpers::Search end RSpec.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_pricing_options: Spree::Config.pricing_options_class.new(currency: 'USD') ) expect(controller.build_searcher({}).class).to eq Spree::Core::Search::Base end end end
Version data entries
11 entries across 11 versions & 1 rubygems