Sha256: fcf01153907ff1c496af6ba98ac31e3d3710ea6413fdf80b3981d8425a34523c
Contents?: true
Size: 537 Bytes
Versions: 12
Compression:
Stored size: 537 Bytes
Contents
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, spree_api_key: 'fake') allow(controller).to receive_messages spree_current_user: user expect_any_instance_of(Spree::Config.searcher_class).to receive(:current_user=).with(user) spree_get :show, id: taxon.permalink expect(response.status).to eq(200) end end
Version data entries
12 entries across 12 versions & 2 rubygems