summaryrefslogtreecommitdiff
path: root/test/functional/v1/users_controller_test.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-04-11 14:10:38 -0700
committerelijah <elijah@riseup.net>2016-04-11 14:10:38 -0700
commit7e0cd47ab44389fb9933345407ad2c2cd2a579b6 (patch)
tree1a386bafde43b7e85494790c3a916c434ae5d0d3 /test/functional/v1/users_controller_test.rb
parent32617f3f90a172228d1a35ea418d716c813824c4 (diff)
allow monitor auth to create users even if invites are normally required.
Diffstat (limited to 'test/functional/v1/users_controller_test.rb')
-rw-r--r--test/functional/v1/users_controller_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/v1/users_controller_test.rb b/test/functional/v1/users_controller_test.rb
index 7afbb02..df59c4d 100644
--- a/test/functional/v1/users_controller_test.rb
+++ b/test/functional/v1/users_controller_test.rb
@@ -102,7 +102,8 @@ class V1::UsersControllerTest < ActionController::TestCase
end
test "api monitor auth can create and destroy test users" do
- with_config(allow_registration: false) do
+ # should work even with registration off and/or invites required
+ with_config(allow_registration: false, invite_required: true) do
monitor_auth do
user_attribs = record_attributes_for :test_user
post :create, :user => user_attribs, :format => :json