From a490bee1fe6790f6ee6d7a657409f2f89e63e1b2 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Fri, 24 Aug 2018 22:17:13 -0400 Subject: [PATCH] Make like we're always in the organisation --- spec/support/auth_helpers.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/support/auth_helpers.rb b/spec/support/auth_helpers.rb index 6a9fb1b..c795aef 100644 --- a/spec/support/auth_helpers.rb +++ b/spec/support/auth_helpers.rb @@ -1,5 +1,9 @@ module AuthHelpers def sign_in + allow_any_instance_of(SessionsController). + to receive(:in_organization?). + and_return(true) + visit "/" within(".centre-stage") do