Sha256: e4adc48b54af00f455ed6fe0adb692135b2a870c64d36d129e39e3fa1228a3e7
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
RSpec.describe Spree::Admin::ProductsController, type: :controller do stub_authorization! let(:user) { create(:user) } let!(:product) { create(:product) } before { stub_authentication! } after { Spree::Admin::ProductsController.clear_overrides! } context 'related' do it 'is not routable' do spree_get :related, id: product.id expect(response.status).to be(200) end it 'responds to model_class as Spree::Relation' do expect(controller.send(:model_class)).to eq Spree::Product end end end
Version data entries
2 entries across 2 versions & 1 rubygems