Sha256: a274ef1857ba7e25a068eaae0962ef45e33f8da3863af685425412c888f8a5e0
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
require 'spec_helper' describe Spree::Api::OrdersController do describe 'current' do before :each do session.stub(:[]).with(anything).and_return nil end it 'should return 200' do spree_get :current response.status.should == 200 end it 'should assign be empty if session has no order' do spree_get :current assigns(:current_order).should be_nil end it 'should return order in session' do current_order = double(Spree::Order, id: 666) controller.should_receive(:current_order) spree_get :current, format: :json end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_quick_cart-2.2.1 | spec/controllers/orders_controller_spec.rb |