Permalink
Browse files

Add missing stub_authorization! call to missing_products_controller_s…

…pec to fix broken spec
  • Loading branch information...
1 parent 5f3f0ae commit d384523787e55c86272c5f5dcce3c5376fd08368 @radar radar committed Jun 7, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/spec/controllers/spree/admin/missing_products_controller_spec.rb
@@ -5,6 +5,8 @@
# this means this call is triggered before the authorize_admin call and in this case
# the load_resource filter halts the request meaning authorize_admin is not called at all.
describe Spree::Admin::ProductsController do
+ stub_authorization!
+
# Regression test for GH #538
it "cannot find a non-existent product" do
spree_get :edit, :id => "non-existent-product"

0 comments on commit d384523

Please sign in to comment.