lib/gds-sso/warden_config.rb in gds-sso-3.0.1 vs lib/gds-sso/warden_config.rb in gds-sso-3.0.2

- old
+ new

@@ -190,10 +190,10 @@ test_user ||= ENV['GDS_SSO_MOCK_INVALID'].present? ? nil : GDS::SSO::Config.user_klass.first if test_user # Brute force ensure test user has correct perms to signin if ! test_user.has_permission?("signin") permissions = test_user.permissions || [] - test_user.update_attribute(:permissions, permissions << ["signin"]) + test_user.update_attribute(:permissions, permissions << "signin") end success!(test_user) else if Rails.env.test? && ENV['GDS_SSO_MOCK_INVALID'].present? fail!(:invalid)