summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-21 20:08:07 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-21 20:08:07 -0600
commit9a52e25a326c75112fd392e3ea4b5f211527f511 (patch)
tree433faa838fc8f619906fc13bc5378807cc0826c2
parent881df134b40d413f7562e1ebed5462633389ed02 (diff)
Añade el spec del controlador de usuarios
-rw-r--r--app/controllers/api/user_accounts_controller.rb2
-rw-r--r--spec/controllers/user_accounts_controller_spec.rb7
2 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/api/user_accounts_controller.rb b/app/controllers/api/user_accounts_controller.rb
index 36359e5..0825d33 100644
--- a/app/controllers/api/user_accounts_controller.rb
+++ b/app/controllers/api/user_accounts_controller.rb
@@ -14,6 +14,8 @@ module Api
render json: Serializers::UserAccountSerializer.new(@user_account).serializable_hash
end
+ # TODO: Must set authentication before defining the show method.
+
private
def permitted_params
diff --git a/spec/controllers/user_accounts_controller_spec.rb b/spec/controllers/user_accounts_controller_spec.rb
new file mode 100644
index 0000000..d5eefca
--- /dev/null
+++ b/spec/controllers/user_accounts_controller_spec.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+require 'rails_helper'
+
+RSpec.describe Api::UserAccountsController, type: :controller do
+ it { should route(:post, '/api/user_accounts').to(action: :create) }
+end