mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 17:24:50 -04:00
Have to stub the controller load_and_authorize_resource behaviour, as these tests aren't run in that context.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user