rspec Tag

Codigo del Controller
[ruby]

class SessionsController < ApplicationController
  respond_to :json, only: :create

  def create
    sign_in_service = service :sign_in, params
    @result = sign_in_service.call

    if @result.valid?
      Services::SessionHandlerService.new(self).create @result.object
      render status: :ok, json: []
    else
      render status: :unprocessable_entity, json: @result.errors
    end
   end
end
end

[/ruby]