Sha256: f3b3f6aaef2414a10299214792116a6f5203ff1d179377fcfe0edbe8fa2c4f4a

Contents?: true

Size: 832 Bytes

Versions: 16

Compression:

Stored size: 832 Bytes

Contents

require 'spec_helper'

module Spree
  module Admin
    describe ReturnIndexController, type: :controller do
      stub_authorization!

      describe "#return_authorizations" do
        let(:return_authorization) { create(:return_authorization) }

        subject do
          spree_get :return_authorizations
        end

        before { subject }

        it "loads return authorizations" do
          expect(assigns(:collection)).to include(return_authorization)
        end
      end

      describe "#customer_returns" do
        let(:customer_return) { create(:customer_return) }

        subject do
          spree_get :customer_returns
        end

        before { subject }

        it "loads customer returns" do
          expect(assigns(:collection)).to include(customer_return)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spree_backend-3.3.0.rc1 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.1.5 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.2.1 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.2.0 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.1.4 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.2.0.rc3 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.2.0.rc2 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.2.0.rc1 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.1.3 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.1.2 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.1.1 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.1.0 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.1.0.rc4 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.1.0.rc3 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.1.0.rc2 spec/controllers/spree/admin/return_index_controller_spec.rb
spree_backend-3.1.0.rc1 spec/controllers/spree/admin/return_index_controller_spec.rb