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