Have to stub the controller load_and_authorize_resource behaviour, as these tests aren't run in that context.

This commit is contained in:
Daniel O'Connor committed 2016-03-28 22:26:36 +10:30
1 parent 32af1b28a8
commit bfffaab77f
1 file changed
+1
@@ -35,6 +35,7 @@ describe "scientific_names/show" do
before :each do
@wrangler = FactoryGirl.create(:crop_wrangling_member)
sign_in @wrangler
controller.stub(:current_user) { @wrangler }
render
end