Sha256: a589f9df7f321f9a801c4c6d2a6e2fd53b22b4ccf4778dd7d426e0fdff88d47a
Contents?: true
Size: 551 Bytes
Versions: 13
Compression:
Stored size: 551 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Spree::TaxonsController, type: :controller do it "should provide the current user to the searcher class" do taxon = create(:taxon, permalink: "test") user = mock_model(Spree.user_class, last_incomplete_spree_order: nil) allow(controller).to receive_messages spree_current_user: user expect_any_instance_of(Spree::Config.searcher_class).to receive(:current_user=).with(user) get :show, params: { id: taxon.permalink } expect(response.status).to eq(200) end end
Version data entries
13 entries across 13 versions & 1 rubygems