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