Sha256: d0b66473d30ae236a5eb003d7292a791f72295b82a2e23e01e039b26b6da4511

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 Bytes

Contents

require 'spec_helper'

describe Spree::Admin::RecurringOrdersController do
  
  let(:user) { mock_model Spree::User, :last_incomplete_spree_order => nil, :has_spree_role? => true, :spree_api_key => 'fake' }

  before :each do
    controller.stub :spree_current_user => user
    controller.stub :check_authorization
  end

  describe 'index' do

    it 'should get all recurring orders' do
      orders = []
      Spree::RecurringOrder.should_receive(:all).and_return(orders)

      spree_get :index
      assigns(:recurring_orders).should == orders
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_recurring_order-2.1.3 spec/controllers/spree/admin/recurring_orders_controller_spec.rb