Sha256: 3d09d545a5b00a7b80cb86f0bd9fd95cf79b062a8c34722b21868d5133a5eb13

Contents?: true

Size: 348 Bytes

Versions: 18

Compression:

Stored size: 348 Bytes

Contents

module Spree
  module Admin
    RSpec.describe OrdersController, type: :controller do
      stub_authorization!

      context '#authorize_admin' do
        it 'grants access to users with an admin role' do
          get :new
          expect(response).to redirect_to spree.cart_admin_order_path(Order.last)
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spree_auth_devise-4.6.3 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.6.2 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.6.1 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.6.0 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.5.0 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.4.2 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.1.1 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.2.1 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.4.1 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.4.0 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.3.4 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.3.3 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.3.2 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.3.1 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.3.0 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.2.0 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.1.0 spec/controllers/spree/admin/orders_controller_spec.rb
spree_auth_devise-4.1.0.rc1 spec/controllers/spree/admin/orders_controller_spec.rb