Permalink
Browse files

Stub authorization in correct OrdersController

  • Loading branch information...
radar committed May 28, 2012
1 parent ae99482 commit 2bae6e13ea8979ef6209d57ae5079fcaf0390223
@@ -1,6 +1,7 @@
require 'spec_helper'
describe Spree::Admin::OrdersController do
+ stub_authorization!
let(:order) { mock_model(Spree::Order, :complete? => true, :total => 100) }
@@ -1,8 +1,6 @@
require 'spec_helper'
describe Spree::OrdersController do
- stub_authorization!
-
let(:user) { create(:user) }
let(:order) { mock_model(Spree::Order, :number => "R123", :reload => nil, :save! => true, :coupon_code => nil, :user => user)}
before do

0 comments on commit 2bae6e1

Please sign in to comment.