Sha256: 43c372a3db356c21988f314a70e1fe0d2e90aa0d5bc9901e29a14a33060b0241
Contents?: true
Size: 405 Bytes
Versions: 6
Compression:
Stored size: 405 Bytes
Contents
describe Spree::Api::V2::OrdersController do routes { Spree::Core::Engine.routes } let(:order) { create :order } let(:user) { order.user } before { user.generate_spree_api_key! } describe '#show' do it 'will respond with the order' do get :show, token: user.spree_api_key, id: order.id expect(JSON.parse(response.body)['data']['type']).to eql 'spree_orders' end end end
Version data entries
6 entries across 6 versions & 2 rubygems