From bfffaab77fc0c2f3c47ca94e2b9d551d86ce33ba Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Mon, 28 Mar 2016 22:26:36 +1030 Subject: [PATCH] Have to stub the controller load_and_authorize_resource behaviour, as these tests aren't run in that context. --- spec/views/scientific_names/show.html.haml_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/views/scientific_names/show.html.haml_spec.rb b/spec/views/scientific_names/show.html.haml_spec.rb index d3db043e8..a36646658 100644 --- a/spec/views/scientific_names/show.html.haml_spec.rb +++ b/spec/views/scientific_names/show.html.haml_spec.rb @@ -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